package com.wicket.okrcalc.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrcalc.biz.service.dto.req.*;
import com.wicket.okrcalc.biz.service.dto.res.*;
import com.wicket.okrcalc.common.exception.BizException;
import com.wicket.okrcalc.common.util.CommonFunctionHelper;
import com.wicket.okrcalc.common.util.RedisUtil;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.wicket.okrcomponent.integration.dto.QuerySchemeMatchSingleResultToAnswerDetailComRespDto;
import com.wicket.okrcomponent.integration.dto.QuerySchemeMatchSingleResultToAnswerDetailComReqDto;
import com.wicket.okrapp.integration.dto.ImplementGetTargetContentIdComRespDto;
import com.wicket.okrapp.integration.dto.ImplementGetTargetContentIdComReqDto;
import com.wicket.okrapp.integration.dto.QueryProcExecuteCycleStageDetailComRespDto;
import com.wicket.okrapp.integration.dto.QueryProcExecuteCycleStageDetailComReqDto;
import com.wicket.okrapp.integration.dto.ImplementIsWorkCycleDataAnalysisComRespDto;
import com.wicket.okrapp.integration.dto.ImplementIsWorkCycleDataAnalysisComReqDto;
import com.wicket.okrcalc.common.exception.Assert;
import com.wicket.okrcalc.biz.service.nb.NbTask;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrapp.integration.FwAppGridCalculateClient;
import com.wicket.okrapp.integration.FwAppTargetCycleClient;
import com.wicket.okrcalc.biz.service.StandardDataService;
import com.wicket.okrapp.integration.FwAppStandardDataClient;
import com.wicket.okrcalc.biz.service.GridCalculateService;
import com.wicket.okrapp.integration.dto.ObtainCurrentTargetContexeCuteCycleComRespDto;
import com.wicket.okrapp.integration.dto.ObtainCurrentTargetContexeCuteCycleComReqDto;
import com.wicket.okrapp.integration.FwAppExecuteCycleClient;
import com.wicket.okrapp.integration.dto.ImplementBudgetReportElementAnalyzeComRespDto;
import com.wicket.okrapp.integration.dto.ImplementBudgetReportElementAnalyzeComReqDto;
import com.wicket.okrapp.integration.FwAppFinanceClient;
import com.wicket.okrapp.integration.FwAppEvaThemeClient;
import com.wicket.okrapp.integration.dto.QueryEvaTempDetailComRespDto;
import com.wicket.okrapp.integration.dto.QueryEvaTempDetailComReqDto;
import com.wicket.okrapp.integration.dto.PreparationStandardDataContAndCycleComRespDto;
import com.wicket.okrapp.integration.dto.PreparationStandardDataContAndCycleComReqDto;
import com.wicket.okrapp.integration.dto.PreparationSubmitStandardDataConfDataComRespDto;
import com.wicket.okrapp.integration.dto.PreparationSubmitStandardDataConfDataComReqDto;
import com.wicket.okrapp.integration.dto.QueryTargetBelongCycleDetailComRespDto;
import com.wicket.okrapp.integration.dto.QueryTargetBelongCycleDetailComReqDto;
import com.wicket.okrapp.integration.dto.QueryVirtualOrgMemberDetailComRespDto;
import com.wicket.okrapp.integration.dto.QueryVirtualOrgMemberDetailComReqDto;
//import com.wicket.okrapp.integration.dto.JudgeTaskEvaIsDoneComRespDto;
//import com.wicket.okrapp.integration.dto.JudgeTaskEvaIsDoneComReqDto;
import com.wicket.okrapp.integration.FwAppTargetCalcClient;
import com.wicket.okrapp.integration.FwAppVirtualOrgClient;
import com.wicket.okrcalc.biz.service.TargetCalcService;
import com.wicket.okrapp.integration.FwAppTaskClient;
import com.wicket.okrapp.integration.dto.UpdateTargetBelongCycleComRespDto;
import com.wicket.okrapp.integration.dto.UpdateTargetBelongCycleComReqDto;
import com.wicket.okrcomponent.integration.dto.GenerateDataObjectBatchCodeComRespDto;
import com.wicket.okrcomponent.integration.dto.GenerateDataObjectBatchCodeComReqDto;
import com.wicket.okrcomponent.integration.FwCompInterfaceModeClient;
import com.wicket.okrcalc.base.service.MOmsStandardDataResultService;
import com.wicket.okrapp.integration.dto.BatchRefreshTaskerIsPartakeEvaComRespDto;
import com.wicket.okrapp.integration.dto.BatchRefreshTaskerIsPartakeEvaComReqDto;
import com.wicket.okrcomponent.integration.dto.CalculateContentAmountComRespDto;
import com.wicket.okrcomponent.integration.dto.CalculateContentAmountComReqDto;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrcomponent.integration.FwCompStatisticalDataClient;
import com.wicket.okrcalc.biz.service.CalculationRulesService;
import com.wicket.okrapp.integration.dto.SendReportTaskEvaMsgComRespDto;
import com.wicket.okrapp.integration.dto.SendReportTaskEvaMsgComReqDto;
import com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComRespDto;
import com.wicket.okrapp.integration.dto.QueryConfItemMatchAnswerDetailComReqDto;
import com.wicket.okrapp.integration.dto.RefreshReportTaskStatusMsgAndMsgNumComRespDto;
import com.wicket.okrapp.integration.dto.RefreshReportTaskStatusMsgAndMsgNumComReqDto;
import com.wicket.okrapp.integration.FwAppMessageClient;

/**
 * @author ：
 * @date ：
 * 
 *
 * @version 1.0
 */
@Service
public class TaskServiceImpl
  implements com.wicket.okrcalc.biz.service.TaskService {

  @Resource
  private RedisUtil redisUtil;
//@Resource
 //private MCustomFieldsService mCustomFieldsService;
@Resource
  private NbTask nbTask;
@Resource
  private FwCompConfSchemeClient fwCompConfSchemeClient;
@Resource
  private FwAppGridCalculateClient fwAppGridCalculateClient;
@Resource
  private FwAppTargetCycleClient fwAppTargetCycleClient;
@Resource
  private StandardDataService standardDataService;
@Resource
  private FwAppStandardDataClient fwAppStandardDataClient;
@Resource
  private GridCalculateService gridCalculateService;
@Resource
  private FwAppExecuteCycleClient fwAppExecuteCycleClient;
@Resource
  private FwAppFinanceClient fwAppFinanceClient;
@Resource
  private FwAppEvaThemeClient fwAppEvaThemeClient;
@Resource
  private FwAppTargetCalcClient fwAppTargetCalcClient;
@Resource
  private FwAppVirtualOrgClient fwAppVirtualOrgClient;
@Resource
  private TargetCalcService targetCalcService;
@Resource
  private FwAppTaskClient fwAppTaskClient;
@Resource
  private FwCompInterfaceModeClient fwCompInterfaceModeClient;
@Resource
  private MOmsStandardDataResultService mOmsStandardDataResultService;
@Resource
  private FwCompStatisticalDataClient fwCompStatisticalDataClient;
@Resource
  private CalculationRulesService calculationRulesService;
@Resource
  private FwAppMessageClient fwAppMessageClient;
//@Resource
 //private MCustomFields3Service mCustomFields3Service;
/**
   * D4-查询汇报任务计算相关配置详情(公共)[3304]
   * gen by moon at 3/20/2024, 11:59:39 AM
   */
  @Trace(operationName = "D4-查询汇报任务计算相关配置详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryConfigOfReportingTaskCalcDetailComRespDto queryConfigOfReportingTaskCalcDetailCom(QueryConfigOfReportingTaskCalcDetailComReqDto reqDto){
    
      
      QuerySchemeMatchSingleResultToAnswerDetailComRespDto querySchemeMatchSingleResultToAnswerDetailComRespDto_1 =null;
QueryPrepareForCalcContentDetailComRespDto queryPrepareForCalcContentDetailComRespDto_1 =null;
ImplementProgressValueDownClacFormAnalysisComRespDto implementProgressValueDownClacFormAnalysisComRespDto_1 =null;
ImplementActualValueSystemDockingAnalysisComRespDto implementActualValueSystemDockingAnalysisComRespDto_1 =null;
ImplementActualValueDownClacFormAnalysisComRespDto implementActualValueDownClacFormAnalysisComRespDto_1 =null;
AddAcceptFieldRespDto receptionServiceRes_7 =null;
AddAcceptFieldRespDto receptionServiceRes_9 =null;
AddOutputParametersRespDto receptionServiceRes_11 =null;
AddOutputParametersRespDto receptionServiceRes_18 =null;
AddOutputParametersRespDto receptionServiceRes_24 =null;
//virtualUsage M3-默认赋值0  16739
      //ModelCode: receptionService
        ImplementOutputParametersRespDto receptionServiceRes = null;
    ImplementOutputParametersReqDto receptionServiceReq=new ImplementOutputParametersReqDto();
  receptionServiceReq.setOutputNum(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:338391_1_16739
  
    /*M3-默认赋值0[2888]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getOutputNum(),"D4-查询汇报任务计算相关配置详情(公共)-M3-默认赋值0-传输数值（整数型）不能为空",false);
      receptionServiceRes = nbTask.implementOutputParameters(receptionServiceReq);
      
      
      
//virtualUsage M3-默认赋值1  16741
      //ModelCode: receptionService
        ImplementOutputParametersRespDto receptionServiceRes_2 = null;
    ImplementOutputParametersReqDto receptionServiceReq_1=new ImplementOutputParametersReqDto();
  receptionServiceReq_1.setOutputNum(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:338393_1_16741
  
    /*M3-默认赋值1[2888]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getOutputNum(),"D4-查询汇报任务计算相关配置详情(公共)-M3-默认赋值1-传输数值（整数型）不能为空",false);
      receptionServiceRes_2 = nbTask.implementOutputParameters(receptionServiceReq_1);
      
      
      
//virtualUsage M3-默认赋值2  28102
      //ModelCode: receptionService
        ImplementOutputParametersRespDto receptionServiceRes_4 = null;
    ImplementOutputParametersReqDto receptionServiceReq_2=new ImplementOutputParametersReqDto();
  receptionServiceReq_2.setOutputNum(Long.valueOf(2));//CUSTOM_CONVENTION//sourceId:639305_1_28102
  
    /*M3-默认赋值2[2888]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getOutputNum(),"D4-查询汇报任务计算相关配置详情(公共)-M3-默认赋值2-传输数值（整数型）不能为空",false);
      receptionServiceRes_4 = nbTask.implementOutputParameters(receptionServiceReq_2);
      
      
      
//virtualUsage D2-3查配置方案下所有答案  38847
      QuerySchemeMatchSingleResultToAnswerDetailComRespDto querySchemeMatchSingleResultToAnswerDetailComRespDto = null;
    QuerySchemeMatchSingleResultToAnswerDetailComReqDto querySchemeMatchSingleResultToAnswerDetailComReqDto=new QuerySchemeMatchSingleResultToAnswerDetailComReqDto();
  querySchemeMatchSingleResultToAnswerDetailComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:876463_1_38847
querySchemeMatchSingleResultToAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:876477_1_38847
if(reqDto!=null){
      querySchemeMatchSingleResultToAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:876464_1_38847
    }
  
    /*D2-3查配置方案下所有答案[3101]   */
    Assert.isNull(querySchemeMatchSingleResultToAnswerDetailComReqDto.getResultAspObjId(),"D4-查询汇报任务计算相关配置详情(公共)-D2-3查配置方案下所有答案-开通对象ID不能为空",false);
Assert.isNull(querySchemeMatchSingleResultToAnswerDetailComReqDto.getResultAspObjType(),"D4-查询汇报任务计算相关配置详情(公共)-D2-3查配置方案下所有答案-开通对象类型编码不能为空",false);
Assert.isNull(querySchemeMatchSingleResultToAnswerDetailComReqDto.getIsPlatData(),"D4-查询汇报任务计算相关配置详情(公共)-D2-3查配置方案下所有答案-是否标准答案不能为空",false);
      querySchemeMatchSingleResultToAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeMatchSingleResultToAnswerDetailCom(querySchemeMatchSingleResultToAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      querySchemeMatchSingleResultToAnswerDetailComRespDto_1 = querySchemeMatchSingleResultToAnswerDetailComRespDto;
//virtualUsage D3查询评价模板详情(公共)  60858
      QueryEvaTempDetailComRespDto queryEvaTempDetailComRespDto = null;
    QueryEvaTempDetailComReqDto queryEvaTempDetailComReqDto=new QueryEvaTempDetailComReqDto();
  queryEvaTempDetailComReqDto.setIsArchive("FALSE");//sourceId:1532361_1_60858
if(reqDto!=null){
      queryEvaTempDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1532360_1_60858
    }

    /*D3查询评价模板详情(公共)[8468]   */
    Assert.isNull(queryEvaTempDetailComReqDto.getEvaluationTemplateId(),"D4-查询汇报任务计算相关配置详情(公共)-D3查询评价模板详情(公共)-评价模板ID不能为空",false);
Assert.isNull(queryEvaTempDetailComReqDto.getIsArchive(),"D4-查询汇报任务计算相关配置详情(公共)-D3查询评价模板详情(公共)-是否存档不能为空",false);
      queryEvaTempDetailComRespDto = fwAppEvaThemeClient.queryEvaTempDetailCom(queryEvaTempDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage D3获取当前目标内容执行周期(公共)  49701
      ObtainCurrentTargetContexeCuteCycleComRespDto obtainCurrentTargetContexeCuteCycleComRespDto = null;
    ObtainCurrentTargetContexeCuteCycleComReqDto obtainCurrentTargetContexeCuteCycleComReqDto=new ObtainCurrentTargetContexeCuteCycleComReqDto();
if(reqDto!=null){
      obtainCurrentTargetContexeCuteCycleComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1163235_1_49701
obtainCurrentTargetContexeCuteCycleComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1163236_1_49701
obtainCurrentTargetContexeCuteCycleComReqDto.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:1163237_1_49701
obtainCurrentTargetContexeCuteCycleComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1163238_1_49701
    }
  
    /*D3获取当前目标内容执行周期(公共)[7501]   */
    Assert.isNull(obtainCurrentTargetContexeCuteCycleComReqDto.getCycleId(),"D4-查询汇报任务计算相关配置详情(公共)-D3获取当前目标内容执行周期(公共)-周期ID不能为空",false);
Assert.isNull(obtainCurrentTargetContexeCuteCycleComReqDto.getTargetCycleContentId(),"D4-查询汇报任务计算相关配置详情(公共)-D3获取当前目标内容执行周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(obtainCurrentTargetContexeCuteCycleComReqDto.getTargetId(),"D4-查询汇报任务计算相关配置详情(公共)-D3获取当前目标内容执行周期(公共)-冗余目标ID不能为空",false);
Assert.isNull(obtainCurrentTargetContexeCuteCycleComReqDto.getEvaluationTemplateId(),"D4-查询汇报任务计算相关配置详情(公共)-D3获取当前目标内容执行周期(公共)-冗余评价模板ID不能为空",false);
      obtainCurrentTargetContexeCuteCycleComRespDto = fwAppExecuteCycleClient.obtainCurrentTargetContexeCuteCycleCom(obtainCurrentTargetContexeCuteCycleComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      

//virtualUsage D4-查询计算准备的内容信息详情(公共)  47702
      QueryPrepareForCalcContentDetailComRespDto queryPrepareForCalcContentDetailComRespDto = null;
    if(obtainCurrentTargetContexeCuteCycleComRespDto !=null&&querySchemeMatchSingleResultToAnswerDetailComRespDto !=null){
          QueryPrepareForCalcContentDetailComReqDto queryPrepareForCalcContentDetailComReqDto=new QueryPrepareForCalcContentDetailComReqDto();
  if(reqDto!=null){
      queryPrepareForCalcContentDetailComReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1089308_1_47702
queryPrepareForCalcContentDetailComReqDto.setUpdateCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1089358_1_47702
queryPrepareForCalcContentDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1089310_1_47702
    }
if(obtainCurrentTargetContexeCuteCycleComRespDto!=null){
      queryPrepareForCalcContentDetailComReqDto.setExecuteCycleStageId(obtainCurrentTargetContexeCuteCycleComRespDto.getExecuteCycleStageId());//SimpleFieldAssign//sourceId:1089309_1_47702
    }
if(querySchemeMatchSingleResultToAnswerDetailComRespDto!=null){
      queryPrepareForCalcContentDetailComReqDto.setLastCycleType(querySchemeMatchSingleResultToAnswerDetailComRespDto.getLastCycleType());//SimpleFieldAssign//sourceId:1089345_1_47702
queryPrepareForCalcContentDetailComReqDto.setSubjectiveRatingTotalValueUnit(querySchemeMatchSingleResultToAnswerDetailComRespDto.getSubjectiveRatingTotalValueUnit());//SimpleFieldAssign//sourceId:1089357_1_47702
    }
  
    /*D4-查询计算准备的内容信息详情(公共)[5993]   */
    Assert.isNull(queryPrepareForCalcContentDetailComReqDto.getEvaObjTargetCycleId(),"D4-查询汇报任务计算相关配置详情(公共)-D4-查询计算准备的内容信息详情(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(queryPrepareForCalcContentDetailComReqDto.getExecuteCycleStageId(),"D4-查询汇报任务计算相关配置详情(公共)-D4-查询计算准备的内容信息详情(公共)-执行周期阶段ID不能为空",false);
Assert.isNull(queryPrepareForCalcContentDetailComReqDto.getEvaluationTemplateId(),"D4-查询汇报任务计算相关配置详情(公共)-D4-查询计算准备的内容信息详情(公共)-冗余评价模板ID不能为空",false);
      queryPrepareForCalcContentDetailComRespDto = standardDataService.queryPrepareForCalcContentDetailCom(queryPrepareForCalcContentDetailComReqDto)/*vcase invoke isSameApp*/;
      
      
      queryPrepareForCalcContentDetailComRespDto_1 = queryPrepareForCalcContentDetailComRespDto;
           }
//virtualUsage D3-执行分析是否工作周期数据(公共)  47699
      ImplementIsWorkCycleDataAnalysisComRespDto implementIsWorkCycleDataAnalysisComRespDto = null;
    if(queryPrepareForCalcContentDetailComRespDto !=null){
          ImplementIsWorkCycleDataAnalysisComReqDto implementIsWorkCycleDataAnalysisComReqDto=new ImplementIsWorkCycleDataAnalysisComReqDto();
  if(queryPrepareForCalcContentDetailComRespDto!=null){
      implementIsWorkCycleDataAnalysisComReqDto.setStandardDataCalcCycleModel(queryPrepareForCalcContentDetailComRespDto.getStandardDataCalcCycleModel());//SimpleFieldAssign//sourceId:1089299_1_47699
    }
  
    /*D3-执行分析是否工作周期数据(公共)[7294]   */
    
      implementIsWorkCycleDataAnalysisComRespDto = fwAppStandardDataClient.implementIsWorkCycleDataAnalysisCom(implementIsWorkCycleDataAnalysisComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
           }
//virtualUsage D4-进度值人工汇报条件模型(公共)  44903
      ImplementProgressValueManualFormAnalysisComRespDto implementProgressValueManualFormAnalysisComRespDto = null;
    if(querySchemeMatchSingleResultToAnswerDetailComRespDto !=null&&queryPrepareForCalcContentDetailComRespDto !=null){
          ImplementProgressValueManualFormAnalysisComReqDto implementProgressValueManualFormAnalysisComReqDto=new ImplementProgressValueManualFormAnalysisComReqDto();
  if(querySchemeMatchSingleResultToAnswerDetailComRespDto!=null){
      implementProgressValueManualFormAnalysisComReqDto.setSchemeDataPara(querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara());//SimpleFieldAssign//sourceId:1028424_1_44903
implementProgressValueManualFormAnalysisComReqDto.setReportType(querySchemeMatchSingleResultToAnswerDetailComRespDto.getReportType());//SimpleFieldAssign//sourceId:1028426_1_44903
//implementProgressValueManualFormAnalysisComReqDto.setIsOkrPlanScene(querySchemeMatchSingleResultToAnswerDetailComRespDto.getIsOkrPlanScene());//SimpleFieldAssign//sourceId:1028427_1_44903
//implementProgressValueManualFormAnalysisComReqDto.setConstTaskIsOpenReport(querySchemeMatchSingleResultToAnswerDetailComRespDto.getConstTaskIsOpenReport());//SimpleFieldAssign//sourceId:1165050_1_44903
implementProgressValueManualFormAnalysisComReqDto.setNoPracticalValueObjIsProgReport(querySchemeMatchSingleResultToAnswerDetailComRespDto.getNoPracticalValueObjIsProgReport());//SimpleFieldAssign//sourceId:1165049_1_44903
    }
if(queryPrepareForCalcContentDetailComRespDto!=null){
      implementProgressValueManualFormAnalysisComReqDto.setEvaObjTypeCode(queryPrepareForCalcContentDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1028425_1_44903
implementProgressValueManualFormAnalysisComReqDto.setTargetValueType(queryPrepareForCalcContentDetailComRespDto.getTargetValueType());//SimpleFieldAssign//sourceId:1028421_1_44903
implementProgressValueManualFormAnalysisComReqDto.setIsLastObjective(queryPrepareForCalcContentDetailComRespDto.getIsLastObjective());//SimpleFieldAssign//sourceId:1028419_1_44903
//implementProgressValueManualFormAnalysisComReqDto.setIndicatorKind(queryPrepareForCalcContentDetailComRespDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1028428_1_44903
implementProgressValueManualFormAnalysisComReqDto.setCalculateDataSource(queryPrepareForCalcContentDetailComRespDto.getCalculateDataSource());//SimpleFieldAssign//sourceId:1028422_1_44903
implementProgressValueManualFormAnalysisComReqDto.setStandardDataCalcCycleModel(queryPrepareForCalcContentDetailComRespDto.getStandardDataCalcCycleModel());//SimpleFieldAssign//sourceId:1028429_1_44903
    }
if(reqDto!=null){
      implementProgressValueManualFormAnalysisComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1028420_1_44903
    }
  
    /*D4-进度值人工汇报条件模型(公共)[6397]   */
    Assert.isNull(implementProgressValueManualFormAnalysisComReqDto.getSchemeDataPara(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值人工汇报条件模型(公共)-评价模板商业参数不能为空",false);
Assert.isNull(implementProgressValueManualFormAnalysisComReqDto.getReportType(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值人工汇报条件模型(公共)-汇报类型不能为空",false);
//Assert.isNull(implementProgressValueManualFormAnalysisComReqDto.getIsOkrPlanScene(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值人工汇报条件模型(公共)-冗余开启OKR场景不能为空",false);
Assert.isNull(implementProgressValueManualFormAnalysisComReqDto.getEvaObjTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值人工汇报条件模型(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementProgressValueManualFormAnalysisComReqDto.getTargetCycleContentTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值人工汇报条件模型(公共)-关联目标内容类型编码不能为空",false);
      implementProgressValueManualFormAnalysisComRespDto = gridCalculateService.implementProgressValueManualFormAnalysisCom(implementProgressValueManualFormAnalysisComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
//virtualUsage D4-进度值向下计算条件模型（公共）  44904
      ImplementProgressValueDownClacFormAnalysisComRespDto implementProgressValueDownClacFormAnalysisComRespDto = null;
    if(implementProgressValueManualFormAnalysisComRespDto !=null&&querySchemeMatchSingleResultToAnswerDetailComRespDto !=null&&queryPrepareForCalcContentDetailComRespDto !=null){
          ImplementProgressValueDownClacFormAnalysisComReqDto implementProgressValueDownClacFormAnalysisComReqDto=new ImplementProgressValueDownClacFormAnalysisComReqDto();
  if(implementProgressValueManualFormAnalysisComRespDto!=null){
      implementProgressValueDownClacFormAnalysisComReqDto.setProgressValueCalcFormula(implementProgressValueManualFormAnalysisComRespDto.getProgressValueCalcFormula());//SimpleFieldAssign//sourceId:1628249_1_44904
    }
  if(querySchemeMatchSingleResultToAnswerDetailComRespDto!=null){
      implementProgressValueDownClacFormAnalysisComReqDto.setSchemeDataPara(querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara());//SimpleFieldAssign//sourceId:1028442_1_44904
//implementProgressValueDownClacFormAnalysisComReqDto.setIsOkrPlanScene(querySchemeMatchSingleResultToAnswerDetailComRespDto.getIsOkrPlanScene());//SimpleFieldAssign//sourceId:1028446_1_44904
implementProgressValueDownClacFormAnalysisComReqDto.setReportType(querySchemeMatchSingleResultToAnswerDetailComRespDto.getReportType());//SimpleFieldAssign//sourceId:1028448_1_44904
//implementProgressValueDownClacFormAnalysisComReqDto.setConstTaskIsOpenReport(querySchemeMatchSingleResultToAnswerDetailComRespDto.getConstTaskIsOpenReport());//SimpleFieldAssign//sourceId:1136273_1_44904
implementProgressValueDownClacFormAnalysisComReqDto.setNoPracticalValueObjIsProgReport(querySchemeMatchSingleResultToAnswerDetailComRespDto.getNoPracticalValueObjIsProgReport());//SimpleFieldAssign//sourceId:1163475_1_44904
    }
if(queryPrepareForCalcContentDetailComRespDto!=null){
      implementProgressValueDownClacFormAnalysisComReqDto.setEvaObjTypeCode(queryPrepareForCalcContentDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1028447_1_44904
implementProgressValueDownClacFormAnalysisComReqDto.setTargetValueType(queryPrepareForCalcContentDetailComRespDto.getTargetValueType());//SimpleFieldAssign//sourceId:1163474_1_44904
implementProgressValueDownClacFormAnalysisComReqDto.setIsLastObjective(queryPrepareForCalcContentDetailComRespDto.getIsLastObjective());//SimpleFieldAssign//sourceId:1028444_1_44904
//implementProgressValueDownClacFormAnalysisComReqDto.setIndicatorKind(queryPrepareForCalcContentDetailComRespDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1540473_1_44904
implementProgressValueDownClacFormAnalysisComReqDto.setStandardDataCalcCycleModel(queryPrepareForCalcContentDetailComRespDto.getStandardDataCalcCycleModel());//SimpleFieldAssign//sourceId:1028449_1_44904
    }
if(reqDto!=null){
      implementProgressValueDownClacFormAnalysisComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1028443_1_44904
    }

    /*D4-进度值向下计算条件模型（公共）[6398]   */
    Assert.isNull(implementProgressValueDownClacFormAnalysisComReqDto.getSchemeDataPara(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向下计算条件模型（公共）-评价模板商业参数不能为空",false);
//Assert.isNull(implementProgressValueDownClacFormAnalysisComReqDto.getIsOkrPlanScene(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向下计算条件模型（公共）-冗余开启OKR场景不能为空",false);
Assert.isNull(implementProgressValueDownClacFormAnalysisComReqDto.getReportType(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向下计算条件模型（公共）-汇报类型不能为空",false);
Assert.isNull(implementProgressValueDownClacFormAnalysisComReqDto.getEvaObjTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向下计算条件模型（公共）-被评对象类型编码不能为空",false);
Assert.isNull(implementProgressValueDownClacFormAnalysisComReqDto.getTargetCycleContentTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向下计算条件模型（公共）-关联目标内容类型编码不能为空",false);
Assert.isNull(implementProgressValueDownClacFormAnalysisComReqDto.getStandardDataCalcCycleModel(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向下计算条件模型（公共）-标准数据计算周期模型不能为空",false);
      implementProgressValueDownClacFormAnalysisComRespDto = gridCalculateService.implementProgressValueDownClacFormAnalysisCom(implementProgressValueDownClacFormAnalysisComReqDto)/*vcase invoke isSameApp*/;
      
      
      implementProgressValueDownClacFormAnalysisComRespDto_1 = implementProgressValueDownClacFormAnalysisComRespDto;
           }
//virtualUsage D4-进度值向左计算条件模型（公共）  44905
      ImplementProgressValueRightClacFormAnalysisComRespDto implementProgressValueRightClacFormAnalysisComRespDto = null;
    if(implementProgressValueDownClacFormAnalysisComRespDto !=null&&querySchemeMatchSingleResultToAnswerDetailComRespDto !=null&&queryPrepareForCalcContentDetailComRespDto !=null){
          ImplementProgressValueRightClacFormAnalysisComReqDto implementProgressValueRightClacFormAnalysisComReqDto=new ImplementProgressValueRightClacFormAnalysisComReqDto();
  if(implementProgressValueDownClacFormAnalysisComRespDto!=null){
      implementProgressValueRightClacFormAnalysisComReqDto.setProgressValueCalcFormula(implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula());//SimpleFieldAssign//sourceId:1628251_1_44905
    }
  if(querySchemeMatchSingleResultToAnswerDetailComRespDto!=null){
implementProgressValueRightClacFormAnalysisComReqDto.setSchemeDataPara(querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara());//SimpleFieldAssign//sourceId:1028473_1_44905
implementProgressValueRightClacFormAnalysisComReqDto.setNoPracticalValueObjIsProgReport(querySchemeMatchSingleResultToAnswerDetailComRespDto.getNoPracticalValueObjIsProgReport());//SimpleFieldAssign//sourceId:1163483_1_44905
    }
if(queryPrepareForCalcContentDetailComRespDto!=null){
      implementProgressValueRightClacFormAnalysisComReqDto.setStandardDataCalcCycleModel(queryPrepareForCalcContentDetailComRespDto.getStandardDataCalcCycleModel());//SimpleFieldAssign//sourceId:1028474_1_44905
implementProgressValueRightClacFormAnalysisComReqDto.setEvaObjTypeCode(queryPrepareForCalcContentDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1028480_1_44905
implementProgressValueRightClacFormAnalysisComReqDto.setTargetValueType(queryPrepareForCalcContentDetailComRespDto.getTargetValueType());//SimpleFieldAssign//sourceId:1163482_1_44905
    }
if(reqDto!=null){
      implementProgressValueRightClacFormAnalysisComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1628250_1_44905
    }
  
    /*D4-进度值向左计算条件模型（公共）[6400]   */
Assert.isNull(implementProgressValueRightClacFormAnalysisComReqDto.getSchemeDataPara(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向左计算条件模型（公共）-评价模板商业参数不能为空",false);
Assert.isNull(implementProgressValueRightClacFormAnalysisComReqDto.getStandardDataCalcCycleModel(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向左计算条件模型（公共）-标准数据计算周期模型不能为空",false);
Assert.isNull(implementProgressValueRightClacFormAnalysisComReqDto.getEvaObjTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向左计算条件模型（公共）-被评对象类型编码不能为空",false);
Assert.isNull(implementProgressValueRightClacFormAnalysisComReqDto.getTargetCycleContentTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-进度值向左计算条件模型（公共）-关联目标内容类型编码不能为空",false);
      implementProgressValueRightClacFormAnalysisComRespDto = gridCalculateService.implementProgressValueRightClacFormAnalysisCom(implementProgressValueRightClacFormAnalysisComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
//virtualUsage D4-执行实际值系统对接分析(公共)  44942
      ImplementActualValueSystemDockingAnalysisComRespDto implementActualValueSystemDockingAnalysisComRespDto = null;
    if(querySchemeMatchSingleResultToAnswerDetailComRespDto !=null&&queryPrepareForCalcContentDetailComRespDto !=null){
          ImplementActualValueSystemDockingAnalysisComReqDto implementActualValueSystemDockingAnalysisComReqDto=new ImplementActualValueSystemDockingAnalysisComReqDto();
//  if(querySchemeMatchSingleResultToAnswerDetailComRespDto!=null){
//      implementActualValueSystemDockingAnalysisComReqDto.setSchemeDataPara(querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara());//SimpleFieldAssign//sourceId:1028498_1_44942
//    }
if(queryPrepareForCalcContentDetailComRespDto!=null){
      implementActualValueSystemDockingAnalysisComReqDto.setStandardDataCalcCycleModel(queryPrepareForCalcContentDetailComRespDto.getStandardDataCalcCycleModel());//SimpleFieldAssign//sourceId:1028501_1_44942
implementActualValueSystemDockingAnalysisComReqDto.setEvaObjTypeCode(queryPrepareForCalcContentDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1628252_1_44942
implementActualValueSystemDockingAnalysisComReqDto.setCalculateDataSource(queryPrepareForCalcContentDetailComRespDto.getCalculateDataSource());//SimpleFieldAssign//sourceId:1028499_1_44942
implementActualValueSystemDockingAnalysisComReqDto.setTargetValueType(queryPrepareForCalcContentDetailComRespDto.getTargetValueType());//SimpleFieldAssign//sourceId:1163488_1_44942
implementActualValueSystemDockingAnalysisComReqDto.setQuantityObjectiveNoValue(queryPrepareForCalcContentDetailComRespDto.getQuantityObjectiveNoValue());//SimpleFieldAssign//sourceId:1163489_1_44942
    }
if(reqDto!=null){
implementActualValueSystemDockingAnalysisComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1028500_1_44942
    }
  
    /*D4-执行实际值系统对接分析(公共)[6417]   */
//    Assert.isNull(implementActualValueSystemDockingAnalysisComReqDto.getSchemeDataPara(),"D4-查询汇报任务计算相关配置详情(公共)-D4-执行实际值系统对接分析(公共)-评价模板商业参数不能为空",false);
Assert.isNull(implementActualValueSystemDockingAnalysisComReqDto.getStandardDataCalcCycleModel(),"D4-查询汇报任务计算相关配置详情(公共)-D4-执行实际值系统对接分析(公共)-标准数据计算周期模型不能为空",false);
Assert.isNull(implementActualValueSystemDockingAnalysisComReqDto.getEvaObjTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-执行实际值系统对接分析(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementActualValueSystemDockingAnalysisComReqDto.getTargetCycleContentTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-执行实际值系统对接分析(公共)-关联目标内容类型编码不能为空",false);
      implementActualValueSystemDockingAnalysisComRespDto = gridCalculateService.implementActualValueSystemDockingAnalysisCom(implementActualValueSystemDockingAnalysisComReqDto)/*vcase invoke isSameApp*/;
      
      
      implementActualValueSystemDockingAnalysisComRespDto_1 = implementActualValueSystemDockingAnalysisComRespDto;
           }
//virtualUsage D4-实际值人工汇报条件模型(公共)  44943
      ImplementActualValueManualFormAnalysisComRespDto implementActualValueManualFormAnalysisComRespDto = null;
    if(implementActualValueSystemDockingAnalysisComRespDto !=null&&querySchemeMatchSingleResultToAnswerDetailComRespDto !=null&&queryPrepareForCalcContentDetailComRespDto !=null){
          ImplementActualValueManualFormAnalysisComReqDto implementActualValueManualFormAnalysisComReqDto=new ImplementActualValueManualFormAnalysisComReqDto();
  if(implementActualValueSystemDockingAnalysisComRespDto!=null){
      implementActualValueManualFormAnalysisComReqDto.setActualValueCalcFormula(implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula());//SimpleFieldAssign//sourceId:1628253_1_44943
    }
  if(querySchemeMatchSingleResultToAnswerDetailComRespDto!=null){
      implementActualValueManualFormAnalysisComReqDto.setSchemeDataPara(querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara());//SimpleFieldAssign//sourceId:1028431_1_44943
//implementActualValueManualFormAnalysisComReqDto.setIsOkrPlanScene(querySchemeMatchSingleResultToAnswerDetailComRespDto.getIsOkrPlanScene());//SimpleFieldAssign//sourceId:1028437_1_44943
    }
if(queryPrepareForCalcContentDetailComRespDto!=null){
      implementActualValueManualFormAnalysisComReqDto.setEvaObjTypeCode(queryPrepareForCalcContentDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1028432_1_44943
implementActualValueManualFormAnalysisComReqDto.setTargetValueType(queryPrepareForCalcContentDetailComRespDto.getTargetValueType());//SimpleFieldAssign//sourceId:1028434_1_44943
implementActualValueManualFormAnalysisComReqDto.setQuantityObjectiveNoValue(queryPrepareForCalcContentDetailComRespDto.getQuantityObjectiveNoValue());//SimpleFieldAssign//sourceId:1028440_1_44943
implementActualValueManualFormAnalysisComReqDto.setIsLastObjective(queryPrepareForCalcContentDetailComRespDto.getIsLastObjective());//SimpleFieldAssign//sourceId:1028439_1_44943
//implementActualValueManualFormAnalysisComReqDto.setIndicatorKind(queryPrepareForCalcContentDetailComRespDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1028438_1_44943
implementActualValueManualFormAnalysisComReqDto.setCalculateDataSource(queryPrepareForCalcContentDetailComRespDto.getCalculateDataSource());//SimpleFieldAssign//sourceId:1028435_1_44943
implementActualValueManualFormAnalysisComReqDto.setStandardDataCalcCycleModel(queryPrepareForCalcContentDetailComRespDto.getStandardDataCalcCycleModel());//SimpleFieldAssign//sourceId:1028436_1_44943
    }
if(reqDto!=null){
      implementActualValueManualFormAnalysisComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1028433_1_44943
    }
  
    /*D4-实际值人工汇报条件模型(公共)[6416]   */
    Assert.isNull(implementActualValueManualFormAnalysisComReqDto.getSchemeDataPara(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值人工汇报条件模型(公共)-评价模板商业参数不能为空",false);
//Assert.isNull(implementActualValueManualFormAnalysisComReqDto.getIsOkrPlanScene(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值人工汇报条件模型(公共)-冗余开启OKR场景不能为空",false);
Assert.isNull(implementActualValueManualFormAnalysisComReqDto.getEvaObjTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值人工汇报条件模型(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementActualValueManualFormAnalysisComReqDto.getTargetCycleContentTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值人工汇报条件模型(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementActualValueManualFormAnalysisComReqDto.getStandardDataCalcCycleModel(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值人工汇报条件模型(公共)-标准数据计算周期模型不能为空",false);
      implementActualValueManualFormAnalysisComRespDto = gridCalculateService.implementActualValueManualFormAnalysisCom(implementActualValueManualFormAnalysisComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
//virtualUsage D4-实际值向下计算条件模型(公共)  44944
      ImplementActualValueDownClacFormAnalysisComRespDto implementActualValueDownClacFormAnalysisComRespDto = null;
    if(implementActualValueManualFormAnalysisComRespDto !=null&&querySchemeMatchSingleResultToAnswerDetailComRespDto !=null&&queryPrepareForCalcContentDetailComRespDto !=null){
          ImplementActualValueDownClacFormAnalysisComReqDto implementActualValueDownClacFormAnalysisComReqDto=new ImplementActualValueDownClacFormAnalysisComReqDto();
  if(implementActualValueManualFormAnalysisComRespDto!=null){
      implementActualValueDownClacFormAnalysisComReqDto.setActualValueCalcFormula(implementActualValueManualFormAnalysisComRespDto.getActualValueCalcFormula());//SimpleFieldAssign//sourceId:1628254_1_44944
    }
  if(querySchemeMatchSingleResultToAnswerDetailComRespDto!=null){
//      implementActualValueDownClacFormAnalysisComReqDto.setSchemeDataPara(querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara());//SimpleFieldAssign//sourceId:1028455_1_44944
implementActualValueDownClacFormAnalysisComReqDto.setReportType(querySchemeMatchSingleResultToAnswerDetailComRespDto.getReportType());//SimpleFieldAssign//sourceId:1028460_1_44944
    }
if(queryPrepareForCalcContentDetailComRespDto!=null){
      implementActualValueDownClacFormAnalysisComReqDto.setEvaObjTypeCode(queryPrepareForCalcContentDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1028465_1_44944
implementActualValueDownClacFormAnalysisComReqDto.setTargetValueType(queryPrepareForCalcContentDetailComRespDto.getTargetValueType());//SimpleFieldAssign//sourceId:1028456_1_44944
implementActualValueDownClacFormAnalysisComReqDto.setIsLastObjective(queryPrepareForCalcContentDetailComRespDto.getIsLastObjective());//SimpleFieldAssign//sourceId:1028457_1_44944
//implementActualValueDownClacFormAnalysisComReqDto.setIndicatorKind(queryPrepareForCalcContentDetailComRespDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1028467_1_44944
implementActualValueDownClacFormAnalysisComReqDto.setCalculateDataSource(queryPrepareForCalcContentDetailComRespDto.getCalculateDataSource());//SimpleFieldAssign//sourceId:1028458_1_44944
implementActualValueDownClacFormAnalysisComReqDto.setQuantityObjectiveNoValue(queryPrepareForCalcContentDetailComRespDto.getQuantityObjectiveNoValue());//SimpleFieldAssign//sourceId:1028459_1_44944
implementActualValueDownClacFormAnalysisComReqDto.setStandardDataCalcCycleModel(queryPrepareForCalcContentDetailComRespDto.getStandardDataCalcCycleModel());//SimpleFieldAssign//sourceId:1028466_1_44944
    }
if(reqDto!=null){
      implementActualValueDownClacFormAnalysisComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1028462_1_44944
    }
  
    /*D4-实际值向下计算条件模型(公共)[6404]   */
//    Assert.isNull(implementActualValueDownClacFormAnalysisComReqDto.getSchemeDataPara(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向下计算条件模型(公共)-评价模板商业参数不能为空",false);
Assert.isNull(implementActualValueDownClacFormAnalysisComReqDto.getReportType(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向下计算条件模型(公共)-汇报类型不能为空",false);
Assert.isNull(implementActualValueDownClacFormAnalysisComReqDto.getEvaObjTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向下计算条件模型(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementActualValueDownClacFormAnalysisComReqDto.getTargetCycleContentTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向下计算条件模型(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementActualValueDownClacFormAnalysisComReqDto.getStandardDataCalcCycleModel(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向下计算条件模型(公共)-标准数据计算周期模型不能为空",false);
      implementActualValueDownClacFormAnalysisComRespDto = gridCalculateService.implementActualValueDownClacFormAnalysisCom(implementActualValueDownClacFormAnalysisComReqDto)/*vcase invoke isSameApp*/;
      
      
      implementActualValueDownClacFormAnalysisComRespDto_1 = implementActualValueDownClacFormAnalysisComRespDto;
           }
//virtualUsage D4-实际值向左计算条件模型(公共)  44945
      ImplementActualValueRightClacFormAnalysisComRespDto implementActualValueRightClacFormAnalysisComRespDto = null;
    if(implementActualValueDownClacFormAnalysisComRespDto !=null&&querySchemeMatchSingleResultToAnswerDetailComRespDto !=null&&queryPrepareForCalcContentDetailComRespDto !=null){
          ImplementActualValueRightClacFormAnalysisComReqDto implementActualValueRightClacFormAnalysisComReqDto=new ImplementActualValueRightClacFormAnalysisComReqDto();
  if(implementActualValueDownClacFormAnalysisComRespDto!=null){
      implementActualValueRightClacFormAnalysisComReqDto.setActualValueCalcFormula(implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula());//SimpleFieldAssign//sourceId:1628255_1_44945
    }
//  if(querySchemeMatchSingleResultToAnswerDetailComRespDto!=null){
//implementActualValueRightClacFormAnalysisComReqDto.setSchemeDataPara(querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara());//SimpleFieldAssign//sourceId:1028485_1_44945
//    }
if(queryPrepareForCalcContentDetailComRespDto!=null){
      implementActualValueRightClacFormAnalysisComReqDto.setStandardDataCalcCycleModel(queryPrepareForCalcContentDetailComRespDto.getStandardDataCalcCycleModel());//SimpleFieldAssign//sourceId:1028488_1_44945
implementActualValueRightClacFormAnalysisComReqDto.setEvaObjTypeCode(queryPrepareForCalcContentDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1028494_1_44945
implementActualValueRightClacFormAnalysisComReqDto.setTargetValueType(queryPrepareForCalcContentDetailComRespDto.getTargetValueType());//SimpleFieldAssign//sourceId:1028490_1_44945
implementActualValueRightClacFormAnalysisComReqDto.setQuantityObjectiveNoValue(queryPrepareForCalcContentDetailComRespDto.getQuantityObjectiveNoValue());//SimpleFieldAssign//sourceId:1028491_1_44945
    }
if(reqDto!=null){
implementActualValueRightClacFormAnalysisComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1028492_1_44945
    }
  
    /*D4-实际值向左计算条件模型(公共)[6403]   */
//Assert.isNull(implementActualValueRightClacFormAnalysisComReqDto.getSchemeDataPara(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向左计算条件模型(公共)-评价模板商业参数不能为空",false);
Assert.isNull(implementActualValueRightClacFormAnalysisComReqDto.getStandardDataCalcCycleModel(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向左计算条件模型(公共)-标准数据计算周期模型不能为空",false);
Assert.isNull(implementActualValueRightClacFormAnalysisComReqDto.getEvaObjTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向左计算条件模型(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementActualValueRightClacFormAnalysisComReqDto.getTargetCycleContentTypeCode(),"D4-查询汇报任务计算相关配置详情(公共)-D4-实际值向左计算条件模型(公共)-关联目标内容类型编码不能为空",false);
      implementActualValueRightClacFormAnalysisComRespDto = gridCalculateService.implementActualValueRightClacFormAnalysisCom(implementActualValueRightClacFormAnalysisComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
if((implementProgressValueManualFormAnalysisComRespDto!= null&& implementProgressValueManualFormAnalysisComRespDto.getProgressValueCalcFormula() != null ||implementProgressValueDownClacFormAnalysisComRespDto!= null&& implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula() != null ||implementProgressValueRightClacFormAnalysisComRespDto!= null&& implementProgressValueRightClacFormAnalysisComRespDto.getProgressValueCalcFormula() != null )) {
        //if((D4-进度值人工汇报条件模型(公共).进度值计算公式 值不等于空  or D4-进度值向下计算条件模型（公共）.进度值计算公式 值不等于空  or D4-进度值向左计算条件模型（公共）.进度值计算公式 值不等于空 ))  49945

//ModelCode: receptionService
        AddAcceptFieldRespDto receptionServiceRes_6 = null;
    AddAcceptFieldReqDto receptionServiceReq_3=new AddAcceptFieldReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_3.setProgressValueInterFaceElement(receptionServiceRes_2.getOutputNum()!=null?String.valueOf(receptionServiceRes_2.getOutputNum()):"");//SimpleFieldAssign//sourceId:1171314_1_49947
    }

    /*约定出参：进度值后端元素[6392]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getProgressValueInterFaceElement(),"D4-查询汇报任务计算相关配置详情(公共)-约定出参：进度值后端元素-进度值后端元素不能为空",false);
      receptionServiceRes_6 = nbTask.addAcceptField(receptionServiceReq_3);


      receptionServiceRes_7 = receptionServiceRes_6;
      }
else if((implementActualValueSystemDockingAnalysisComRespDto!= null&& implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula() != null ||implementActualValueManualFormAnalysisComRespDto!= null&& implementActualValueManualFormAnalysisComRespDto.getActualValueCalcFormula() != null ||implementActualValueDownClacFormAnalysisComRespDto!= null&& implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula() != null ||implementActualValueRightClacFormAnalysisComRespDto!= null&& implementActualValueRightClacFormAnalysisComRespDto.getActualValueCalcFormula() != null )){
       //elseif((D4-执行实际值系统对接分析(公共).实际值计算公式 值不等于空  or D4-实际值人工汇报条件模型(公共).实际值计算公式 值不等于空  or D4-实际值向下计算条件模型(公共).参照实际值计算公式 值不等于空  or D4-实际值向左计算条件模型(公共).实际值计算公式 值不等于空 ))  49948

//ModelCode: receptionService
        AddAcceptFieldRespDto receptionServiceRes_8 = null;
    AddAcceptFieldReqDto receptionServiceReq_4=new AddAcceptFieldReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_4.setActualValueInterFaceElement(receptionServiceRes_2.getOutputNum()!=null?String.valueOf(receptionServiceRes_2.getOutputNum()):"");//SimpleFieldAssign//sourceId:1171316_1_49949
    }

    /*约定出参：实际值后端元素[6392]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_4.getActualValueInterFaceElement(),"D4-查询汇报任务计算相关配置详情(公共)-约定出参：实际值后端元素-实际值后端元素不能为空",false);
      receptionServiceRes_8 = nbTask.addAcceptField(receptionServiceReq_4);


      receptionServiceRes_9 = receptionServiceRes_8;
           }
if((implementProgressValueManualFormAnalysisComRespDto!= null&&  implementProgressValueManualFormAnalysisComRespDto.getProgressValueCalcFormula() !=null && implementProgressValueManualFormAnalysisComRespDto.getProgressValueCalcFormula().equals("MANUAL_REPORT")||implementProgressValueDownClacFormAnalysisComRespDto!= null&&  implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula() !=null && implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula().equals("DOWNWARD_CALCULATION_NOKR")||implementProgressValueDownClacFormAnalysisComRespDto!= null&&  implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula() !=null && implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula().equals("DOWNWARD_CALCULATION_KR"))) {
        //if((D4-进度值人工汇报条件模型(公共).进度值计算公式 等于 人工填报进度值 or D4-进度值向下计算条件模型（公共）.进度值计算公式 等于 向下计算参照值不赋值（只有O） or D4-进度值向下计算条件模型（公共）.进度值计算公式 等于 向下计算参照值不赋值（O加KR）))  44901
        
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_10 = null;
    AddOutputParametersReqDto receptionServiceReq_5=new AddOutputParametersReqDto();
  if(receptionServiceRes_4!=null){
      receptionServiceReq_5.setProgressValueElement(receptionServiceRes_4.getOutputNum()!=null?String.valueOf(receptionServiceRes_4.getOutputNum()):"");//SimpleFieldAssign//sourceId:338349_1_44906
    }
  
    /*进度值是否显示（第一行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_5.getProgressValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-进度值是否显示（第一行）-进度值元素不能为空",false);
      receptionServiceRes_10 = nbTask.addOutputParameters(receptionServiceReq_5);
      
      
      receptionServiceRes_11 = receptionServiceRes_10;
      }
else if((implementProgressValueDownClacFormAnalysisComRespDto!= null&&  implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula() !=null && implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula().equals("DOWNWARD_CALCULATION_NOKR_COPY")||implementProgressValueDownClacFormAnalysisComRespDto!= null&&  implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula() !=null && implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula().equals("DOWNWARD_CALCULATION_KR_COPY")||implementProgressValueDownClacFormAnalysisComRespDto!= null&&  implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula() !=null && implementProgressValueDownClacFormAnalysisComRespDto.getProgressValueCalcFormula().equals("DOWNWARD_CALCULATION_ONLY_KR")||implementProgressValueRightClacFormAnalysisComRespDto!= null&&  implementProgressValueRightClacFormAnalysisComRespDto.getProgressValueCalcFormula() !=null && implementProgressValueRightClacFormAnalysisComRespDto.getProgressValueCalcFormula().equals("RIGHTWARD_CALCULATION"))){
       //elseif((D4-进度值向下计算条件模型（公共）.进度值计算公式 等于 向下计算参照值并赋值（只有O） or D4-进度值向下计算条件模型（公共）.进度值计算公式 等于 向下计算参照值并赋值（O加KR） or D4-进度值向下计算条件模型（公共）.进度值计算公式 等于 向下只计算KR or D4-进度值向左计算条件模型（公共）.进度值计算公式 等于 人工填报进度值克隆末级周期))  44909
      
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_12 = null;
    AddOutputParametersReqDto receptionServiceReq_6=new AddOutputParametersReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_6.setProgressValueElement(receptionServiceRes_2.getOutputNum()!=null?String.valueOf(receptionServiceRes_2.getOutputNum()):"");//SimpleFieldAssign//sourceId:338349_1_44910
    }
  
    /*进度值是否显示（第一行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_6.getProgressValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-进度值是否显示（第一行）-进度值元素不能为空",false);
      receptionServiceRes_12 = nbTask.addOutputParameters(receptionServiceReq_6);
      
      
      receptionServiceRes_11 = receptionServiceRes_12;
    }
else if((querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara().equals("DOC_TYPE")||querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara().equals("REACH_TYPE"))&&(queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("PROGRESS")&&reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("OBJECTIVE"))){
       //elseif((D2-3查配置方案下所有答案.评价模板数据参数 等于 资料型 or D2-3查配置方案下所有答案.评价模板数据参数 等于 达成度型) and (D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 等于 进度型 and D4-查询汇报任务计算相关配置详情(公共).关联目标内容类型编码 等于 指标))  44913

if((implementActualValueManualFormAnalysisComRespDto!= null&&  implementActualValueManualFormAnalysisComRespDto.getActualValueCalcFormula() !=null && implementActualValueManualFormAnalysisComRespDto.getActualValueCalcFormula().equals("MANUAL_REPORT"))||(implementActualValueDownClacFormAnalysisComRespDto!= null&&  implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula() !=null && implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula().equals("DOWNWARD_CALCULATION_SUM"))||(implementActualValueDownClacFormAnalysisComRespDto!= null&&  implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula() !=null && implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula().equals("DOWNWARD_CALCULATION_WEIGHT"))||(implementActualValueSystemDockingAnalysisComRespDto!= null&&  implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula() !=null && implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula().equals("SYSTEM_DOCKING")&&queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTureOrFalse() !=null && queryPrepareForCalcContentDetailComRespDto.getTureOrFalse().equals("FALSE"))) {
        //if(D4-实际值人工汇报条件模型(公共).实际值计算公式 等于 人工填报实际值 or D4-实际值向下计算条件模型(公共).参照实际值计算公式 等于 向下计算参照值不赋值（求和） or D4-实际值向下计算条件模型(公共).参照实际值计算公式 等于 向下计算参照值不赋值（权重求和） or (D4-执行实际值系统对接分析(公共).实际值计算公式 等于 系统对接实际值 and D4-查询计算准备的内容信息详情(公共).是否系统对接激活时间 等于 否))  44938
      
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_13 = null;
    AddOutputParametersReqDto receptionServiceReq_7=new AddOutputParametersReqDto();
  if(receptionServiceRes_4!=null){
      receptionServiceReq_7.setProgressValueElement(receptionServiceRes_4.getOutputNum()!=null?String.valueOf(receptionServiceRes_4.getOutputNum()):"");//SimpleFieldAssign//sourceId:338349_1_44939
    }
  
    /*进度值是否显示（第一行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_7.getProgressValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-进度值是否显示（第一行）-进度值元素不能为空",false);
      receptionServiceRes_13 = nbTask.addOutputParameters(receptionServiceReq_7);
      
      
      receptionServiceRes_11 = receptionServiceRes_13;
    }
else if((implementActualValueSystemDockingAnalysisComRespDto!= null&&  implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula() !=null && implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula().equals("SYSTEM_DOCKING")&&queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTureOrFalse() !=null && queryPrepareForCalcContentDetailComRespDto.getTureOrFalse().equals("TRUE"))){
       //elseif((D4-执行实际值系统对接分析(公共).实际值计算公式 等于 系统对接实际值 and D4-查询计算准备的内容信息详情(公共).是否系统对接激活时间 等于 是))  44948
      
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_14 = null;
    AddOutputParametersReqDto receptionServiceReq_8=new AddOutputParametersReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_8.setProgressValueElement(receptionServiceRes_2.getOutputNum()!=null?String.valueOf(receptionServiceRes_2.getOutputNum()):"");//SimpleFieldAssign//sourceId:338349_1_49707
    }
  
    /*进度值是否显示（第一行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_8.getProgressValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-进度值是否显示（第一行）-进度值元素不能为空",false);
      receptionServiceRes_14 = nbTask.addOutputParameters(receptionServiceReq_8);
      
      
      receptionServiceRes_11 = receptionServiceRes_14;
    }
           }
else if((querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara().equals("DOC_TYPE")||querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara().equals("REACH_TYPE"))&&(reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("OBJECTIVE")&&!(queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("PROGRESS")))){
       //elseif((D2-3查配置方案下所有答案.评价模板数据参数 等于 资料型 or D2-3查配置方案下所有答案.评价模板数据参数 等于 达成度型) and (D4-查询汇报任务计算相关配置详情(公共).关联目标内容类型编码 等于 指标 and D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 不等于 进度型))  49711
        
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_15 = null;
    AddOutputParametersReqDto receptionServiceReq_9=new AddOutputParametersReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_9.setProgressValueElement(receptionServiceRes.getOutputNum()!=null?String.valueOf(receptionServiceRes.getOutputNum()):"");//SimpleFieldAssign//sourceId:338349_1_49713
    }
  
    /*进度值是否显示（第一行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_9.getProgressValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-进度值是否显示（第一行）-进度值元素不能为空",false);
      receptionServiceRes_15 = nbTask.addOutputParameters(receptionServiceReq_9);
      
      
      receptionServiceRes_11 = receptionServiceRes_15;
      }
else if((reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("OBJECTIVE")&&queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("SUBJECTIVE_QUALITATIVE")&&querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getNoPracticalValueObjIsProgReport() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getNoPracticalValueObjIsProgReport().equals("FALSE"))){
       //elseif((D4-查询汇报任务计算相关配置详情(公共).关联目标内容类型编码 等于 指标 and D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 等于 主观定性 and D2-3查配置方案下所有答案.无实际值指标是否开启进度汇报 等于 否))  49712
      
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_16 = null;
    AddOutputParametersReqDto receptionServiceReq_10=new AddOutputParametersReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_10.setProgressValueElement(receptionServiceRes.getOutputNum()!=null?String.valueOf(receptionServiceRes.getOutputNum()):"");//SimpleFieldAssign//sourceId:338349_1_49714
    }
  
    /*进度值是否显示（第一行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_10.getProgressValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-进度值是否显示（第一行）-进度值元素不能为空",false);
      receptionServiceRes_16 = nbTask.addOutputParameters(receptionServiceReq_10);
      
      
      receptionServiceRes_11 = receptionServiceRes_16;
    }
else{
       //else  44932
      
//异常结束 49710
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
if((implementActualValueManualFormAnalysisComRespDto!= null&&  implementActualValueManualFormAnalysisComRespDto.getActualValueCalcFormula() !=null && implementActualValueManualFormAnalysisComRespDto.getActualValueCalcFormula().equals("MANUAL_REPORT")&&!(queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("PROGRESS")))||(!(queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("PROGRESS"))&&implementActualValueDownClacFormAnalysisComRespDto!= null&&  implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula() !=null && implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula().equals("DOWNWARD_CALCULATION_SUM"))||(!(queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("PROGRESS"))&&implementActualValueDownClacFormAnalysisComRespDto!= null&&  implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula() !=null && implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula().equals("DOWNWARD_CALCULATION_WEIGHT"))||(!(queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("PROGRESS"))&&queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTureOrFalse() !=null && queryPrepareForCalcContentDetailComRespDto.getTureOrFalse().equals("FALSE")&&implementActualValueSystemDockingAnalysisComRespDto!= null&&  implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula() !=null && implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula().equals("SYSTEM_DOCKING"))) {
        //if((D4-实际值人工汇报条件模型(公共).实际值计算公式 等于 人工填报实际值 and D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 不等于 进度型) or (D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 不等于 进度型 and D4-实际值向下计算条件模型(公共).参照实际值计算公式 等于 向下计算参照值不赋值（求和）) or (D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 不等于 进度型 and D4-实际值向下计算条件模型(公共).参照实际值计算公式 等于 向下计算参照值不赋值（权重求和）) or (D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 不等于 进度型 and D4-查询计算准备的内容信息详情(公共).是否系统对接激活时间 等于 否 and D4-执行实际值系统对接分析(公共).实际值计算公式 等于 系统对接实际值))  44916
        
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_17 = null;
    AddOutputParametersReqDto receptionServiceReq_11=new AddOutputParametersReqDto();
  if(receptionServiceRes_4!=null){
      receptionServiceReq_11.setActualValueElement(receptionServiceRes_4.getOutputNum()!=null?String.valueOf(receptionServiceRes_4.getOutputNum()):"");//SimpleFieldAssign//sourceId:338354_1_44921
    }
  
    /*实际值是否显示（第二行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_11.getActualValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-实际值是否显示（第二行）-实际值元素不能为空",false);
      receptionServiceRes_17 = nbTask.addOutputParameters(receptionServiceReq_11);
      
      
      receptionServiceRes_18 = receptionServiceRes_17;
    }
else if((queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("PROGRESS")||queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTargetValueType() !=null && queryPrepareForCalcContentDetailComRespDto.getTargetValueType().equals("SUBJECTIVE_QUALITATIVE")||queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getQuantityObjectiveNoValue() !=null && queryPrepareForCalcContentDetailComRespDto.getQuantityObjectiveNoValue().equals("TRUE")||reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("TARGET_CATEGORY")||reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("TARGET"))){
       //elseif((D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 等于 进度型 or D4-查询计算准备的内容信息详情(公共).冗余指标业务类型 等于 主观定性 or D4-查询计算准备的内容信息详情(公共).数量型指标当无实际值标记 等于 是 or D4-查询汇报任务计算相关配置详情(公共).关联目标内容类型编码 等于 目标分类 or D4-查询汇报任务计算相关配置详情(公共).关联目标内容类型编码 等于 目标))  44936
      
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_19 = null;
    AddOutputParametersReqDto receptionServiceReq_12=new AddOutputParametersReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_12.setActualValueElement(receptionServiceRes.getOutputNum()!=null?String.valueOf(receptionServiceRes.getOutputNum()):"");//SimpleFieldAssign//sourceId:338354_1_44937
    }
  
    /*实际值是否显示（第二行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_12.getActualValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-实际值是否显示（第二行）-实际值元素不能为空",false);
      receptionServiceRes_19 = nbTask.addOutputParameters(receptionServiceReq_12);
      
      
      receptionServiceRes_18 = receptionServiceRes_19;
    }
else if((implementActualValueSystemDockingAnalysisComRespDto!= null&&  implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula() !=null && implementActualValueSystemDockingAnalysisComRespDto.getActualValueCalcFormula().equals("SYSTEM_DOCKING")&&queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getTureOrFalse() !=null && queryPrepareForCalcContentDetailComRespDto.getTureOrFalse().equals("TRUE"))){
       //elseif((D4-执行实际值系统对接分析(公共).实际值计算公式 等于 系统对接实际值 and D4-查询计算准备的内容信息详情(公共).是否系统对接激活时间 等于 是))  44924
        
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_20 = null;
    AddOutputParametersReqDto receptionServiceReq_13=new AddOutputParametersReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_13.setActualValueElement(receptionServiceRes_2.getOutputNum()!=null?String.valueOf(receptionServiceRes_2.getOutputNum()):"");//SimpleFieldAssign//sourceId:338354_1_49708
    }
  
    /*实际值是否显示（第二行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_13.getActualValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-实际值是否显示（第二行）-实际值元素不能为空",false);
      receptionServiceRes_20 = nbTask.addOutputParameters(receptionServiceReq_13);
      
      
      receptionServiceRes_18 = receptionServiceRes_20;
      }
else if((implementActualValueDownClacFormAnalysisComRespDto!= null&&  implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula() !=null && implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula().equals("DOWNWARD_CALCULATION_SUM_COPY")||implementActualValueDownClacFormAnalysisComRespDto!= null&&  implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula() !=null && implementActualValueDownClacFormAnalysisComRespDto.getCountActualValueCalcFormula().equals("DOWNWARD_CALCULATION_WEIGHT_COPY"))){
       //elseif((D4-实际值向下计算条件模型(公共).参照实际值计算公式 等于 向下计算参照值并赋值（求和） or D4-实际值向下计算条件模型(公共).参照实际值计算公式 等于 向下计算参照值并赋值（权重求和）))  44928
      
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_21 = null;
    AddOutputParametersReqDto receptionServiceReq_14=new AddOutputParametersReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_14.setActualValueElement(receptionServiceRes_2.getOutputNum()!=null?String.valueOf(receptionServiceRes_2.getOutputNum()):"");//SimpleFieldAssign//sourceId:338354_1_44929
    }
  
    /*实际值是否显示（第二行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_14.getActualValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-实际值是否显示（第二行）-实际值元素不能为空",false);
      receptionServiceRes_21 = nbTask.addOutputParameters(receptionServiceReq_14);
      
      
      receptionServiceRes_18 = receptionServiceRes_21;
    }
else if((implementActualValueRightClacFormAnalysisComRespDto!= null&&  implementActualValueRightClacFormAnalysisComRespDto.getActualValueCalcFormula() !=null && implementActualValueRightClacFormAnalysisComRespDto.getActualValueCalcFormula().equals("RIGHTWARD_CALCULATION")||implementActualValueRightClacFormAnalysisComRespDto!= null&&  implementActualValueRightClacFormAnalysisComRespDto.getActualValueCalcFormula() !=null && implementActualValueRightClacFormAnalysisComRespDto.getActualValueCalcFormula().equals("RIGHTWARD_CALCULATION_SUM"))){
       //elseif((D4-实际值向左计算条件模型(公共).实际值计算公式 等于 人工填报实际值克隆末级周期 or D4-实际值向左计算条件模型(公共).实际值计算公式 等于 人工填报实际值末级周期求和))  44930
      
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_22 = null;
    AddOutputParametersReqDto receptionServiceReq_15=new AddOutputParametersReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_15.setActualValueElement(receptionServiceRes_2.getOutputNum()!=null?String.valueOf(receptionServiceRes_2.getOutputNum()):"");//SimpleFieldAssign//sourceId:338354_1_44931
    }
  
    /*实际值是否显示（第二行）[2888] 第一个分支返回：FALSE 第二个分支返回：TRUE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_15.getActualValueElement(),"D4-查询汇报任务计算相关配置详情(公共)-实际值是否显示（第二行）-实际值元素不能为空",false);
      receptionServiceRes_22 = nbTask.addOutputParameters(receptionServiceReq_15);
      
      
      receptionServiceRes_18 = receptionServiceRes_22;
    }
else{
       //else  44934

//异常结束 49709
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
if((querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara().equals("DOC_TYPE")||querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara().equals("PROCESS_TYPE")||querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara().equals("REACH_TYPE")||querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getSchemeDataPara().equals("MIXED_TYPE"))) {
        //if((D2-3查配置方案下所有答案.评价模板数据参数 等于 资料型 or D2-3查配置方案下所有答案.评价模板数据参数 等于 进度型 or D2-3查配置方案下所有答案.评价模板数据参数 等于 达成度型 or D2-3查配置方案下所有答案.评价模板数据参数 等于 混合型))  34634
        
ImplementBudgetReportElementAnalyzeComRespDto implementBudgetReportElementAnalyzeComRespDto = null;
    ImplementBudgetReportElementAnalyzeComReqDto implementBudgetReportElementAnalyzeComReqDto=new ImplementBudgetReportElementAnalyzeComReqDto();
  if(reqDto!=null){
implementBudgetReportElementAnalyzeComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1240430_1_51890
    }

    /*D3-执行预算汇报元素分析(公共)[7697]   */
Assert.isNull(implementBudgetReportElementAnalyzeComReqDto.getTargetCycleContentId(),"D4-查询汇报任务计算相关配置详情(公共)-D3-执行预算汇报元素分析(公共)-关联目标内容ID不能为空",false);
      implementBudgetReportElementAnalyzeComRespDto = fwAppFinanceClient.implementBudgetReportElementAnalyzeCom(implementBudgetReportElementAnalyzeComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((queryEvaTempDetailComRespDto!= null&&  queryEvaTempDetailComRespDto.getIsOpenBudget() !=null && queryEvaTempDetailComRespDto.getIsOpenBudget().equals("TRUE")&&obtainCurrentTargetContexeCuteCycleComRespDto!= null&&  obtainCurrentTargetContexeCuteCycleComRespDto.getIsLastCycle() !=null && obtainCurrentTargetContexeCuteCycleComRespDto.getIsLastCycle().equals("TRUE")&&implementBudgetReportElementAnalyzeComRespDto!= null&&  implementBudgetReportElementAnalyzeComRespDto.getTargetContentCanReport() !=null && implementBudgetReportElementAnalyzeComRespDto.getTargetContentCanReport().equals("TRUE"))) {
        //if((D3查询评价模板详情(公共).是否开启预算 等于 是 and D3查当前目标内容执行周期【判断是否末级周期】.是否末级周期 等于 是 and D3-执行预算汇报元素分析(公共).目标内容是否可提交预算 等于 是))  34746
        
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_23 = null;
    AddOutputParametersReqDto receptionServiceReq_16=new AddOutputParametersReqDto();
  if(receptionServiceRes_4!=null){
      receptionServiceReq_16.setBudgetAmountElement(receptionServiceRes_4.getOutputNum()!=null?String.valueOf(receptionServiceRes_4.getOutputNum()):"");//SimpleFieldAssign//sourceId:338355_1_34748
    }
  
    /*预算是否显示（第三行）[2888] 第一个分支返回：TRUE 第二个分支返回：FALSE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_16.getBudgetAmountElement(),"D4-查询汇报任务计算相关配置详情(公共)-预算是否显示（第三行）-预算元素不能为空",false);
      receptionServiceRes_23 = nbTask.addOutputParameters(receptionServiceReq_16);
      
      
      receptionServiceRes_24 = receptionServiceRes_23;
      }
else if((queryPrepareForCalcContentDetailComRespDto!= null&&  queryPrepareForCalcContentDetailComRespDto.getIsUseBudget() !=null && queryPrepareForCalcContentDetailComRespDto.getIsUseBudget().equals("FALSE")||obtainCurrentTargetContexeCuteCycleComRespDto!= null&&  obtainCurrentTargetContexeCuteCycleComRespDto.getIsLastCycle() !=null && obtainCurrentTargetContexeCuteCycleComRespDto.getIsLastCycle().equals("FALSE")||implementBudgetReportElementAnalyzeComRespDto!= null&&  implementBudgetReportElementAnalyzeComRespDto.getTargetContentCanReport() !=null && implementBudgetReportElementAnalyzeComRespDto.getTargetContentCanReport().equals("FALSE"))){
       //elseif((D4-查询计算准备的内容信息详情(公共).是否开启预算 等于 否 or D3查当前目标内容执行周期【判断是否末级周期】.是否末级周期 等于 否 or D3-执行预算汇报元素分析(公共).目标内容是否可提交预算 等于 否))  51893
      
//ModelCode: receptionService
        AddOutputParametersRespDto receptionServiceRes_25 = null;
    AddOutputParametersReqDto receptionServiceReq_17=new AddOutputParametersReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_17.setBudgetAmountElement(receptionServiceRes.getOutputNum()!=null?String.valueOf(receptionServiceRes.getOutputNum()):"");//SimpleFieldAssign//sourceId:338355_1_51894
    }
  
    /*预算是否显示（第三行）[2888] 第一个分支返回：TRUE 第二个分支返回：FALSE 用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_17.getBudgetAmountElement(),"D4-查询汇报任务计算相关配置详情(公共)-预算是否显示（第三行）-预算元素不能为空",false);
      receptionServiceRes_25 = nbTask.addOutputParameters(receptionServiceReq_17);
      
      
      receptionServiceRes_24 = receptionServiceRes_25;
    }
else{
       //else  36923
      
//异常结束 51895
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
      }
QueryConfigOfReportingTaskCalcDetailComRespDto retData = new QueryConfigOfReportingTaskCalcDetailComRespDto();
  if(receptionServiceRes_11!=null){
      retData.setProgressValueElement(Long.valueOf(receptionServiceRes_11.getProgressValueElement()));//SimpleFieldAssign//sourceId:128197_1
    }
if(receptionServiceRes_18!=null){
      retData.setActualValueElement(Long.valueOf(receptionServiceRes_18.getActualValueElement()));//SimpleFieldAssign//sourceId:128198_1
    }
if(receptionServiceRes_24!=null){
      retData.setBudgetAmountElement(Long.valueOf(receptionServiceRes_24.getBudgetAmountElement()));//SimpleFieldAssign//sourceId:128199_1
    }
if(receptionServiceRes_7!=null){
      retData.setProgressValueInterFaceElement(receptionServiceRes_7.getProgressValueInterFaceElement());//SimpleFieldAssign//sourceId:1171323_1
    }
if(receptionServiceRes_9!=null){
      retData.setActualValueInterFaceElement(receptionServiceRes_9.getActualValueInterFaceElement());//SimpleFieldAssign//sourceId:1171324_1
    }
if(implementActualValueSystemDockingAnalysisComRespDto_1!=null){
      retData.setActualValueCalcFormula(implementActualValueSystemDockingAnalysisComRespDto_1.getActualValueCalcFormula());//SimpleFieldAssign//sourceId:1162853_1
    }
  if(querySchemeMatchSingleResultToAnswerDetailComRespDto_1!=null){
      retData.setSchemeDataPara(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getSchemeDataPara());//SimpleFieldAssign//sourceId:876491_1
    }
if(queryPrepareForCalcContentDetailComRespDto_1!=null){
      retData.setTargetValueType(queryPrepareForCalcContentDetailComRespDto_1.getTargetValueType());//SimpleFieldAssign//sourceId:1089368_1
retData.setIsLeft(queryPrepareForCalcContentDetailComRespDto_1.getIsLeft());//SimpleFieldAssign//sourceId:1089374_1
    }
if(implementProgressValueDownClacFormAnalysisComRespDto_1!=null){
      retData.setProgressValueCalcFormula(implementProgressValueDownClacFormAnalysisComRespDto_1.getProgressValueCalcFormula());//SimpleFieldAssign//sourceId:1028559_1
    }
if(implementActualValueDownClacFormAnalysisComRespDto_1!=null){
      retData.setCountActualValueCalcFormula(implementActualValueDownClacFormAnalysisComRespDto_1.getCountActualValueCalcFormula());//SimpleFieldAssign//sourceId:1028560_1
    }


  
  
return retData;
  }
/**
   * D4提交评价标准数据(公共)[8706]
   * gen by moon at 6/11/2024, 6:41:07 AM
   */
  @Trace(operationName = "D4提交评价标准数据(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public CommitEvaStandardDataComRespDto commitEvaStandardDataCom(CommitEvaStandardDataComReqDto reqDto){


      AnalysisReportTaskEvaIsCompleteComRespDto analysisReportTaskEvaIsCompleteComRespDto_1 =null;
//virtualUsage D2生成数据对象批次标识(公共)  67483
      GenerateDataObjectBatchCodeComRespDto generateDataObjectBatchCodeComRespDto = null;
    GenerateDataObjectBatchCodeComReqDto generateDataObjectBatchCodeComReqDto=new GenerateDataObjectBatchCodeComReqDto();


    /*D2生成数据对象批次标识(公共)[9404]   */

      generateDataObjectBatchCodeComRespDto = fwCompInterfaceModeClient.generateDataObjectBatchCodeCom(generateDataObjectBatchCodeComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage D3-查询虚拟组织成员详情(公共)  69907
      QueryVirtualOrgMemberDetailComRespDto queryVirtualOrgMemberDetailComRespDto = null;
    QueryVirtualOrgMemberDetailComReqDto queryVirtualOrgMemberDetailComReqDto=new QueryVirtualOrgMemberDetailComReqDto();
  queryVirtualOrgMemberDetailComReqDto.setOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:1863409_1_69907
queryVirtualOrgMemberDetailComReqDto.setBusinessOperationTypeCode("EVA_REPORT_TAST");//sourceId:1863411_1_69907
queryVirtualOrgMemberDetailComReqDto.setUseScene("TARGET_PLAN_SCENE");//sourceId:1863412_1_69907
queryVirtualOrgMemberDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1863413_1_69907
if(reqDto!=null){
      queryVirtualOrgMemberDetailComReqDto.setEntityId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1863410_1_69907
    }

    /*D3-查询虚拟组织成员详情(公共)[5937]   */
    Assert.isNull(queryVirtualOrgMemberDetailComReqDto.getEntityId(),"D4提交评价标准数据(公共)-D3-查询虚拟组织成员详情(公共)-冗余内容表主键ID不能为空",false);
Assert.isNull(queryVirtualOrgMemberDetailComReqDto.getOriginalRoleMemberId(),"D4提交评价标准数据(公共)-D3-查询虚拟组织成员详情(公共)-身份人员ID不能为空",false);
Assert.isNull(queryVirtualOrgMemberDetailComReqDto.getBusinessOperationTypeCode(),"D4提交评价标准数据(公共)-D3-查询虚拟组织成员详情(公共)-业务操作类型编码不能为空",false);
Assert.isNull(queryVirtualOrgMemberDetailComReqDto.getUseScene(),"D4提交评价标准数据(公共)-D3-查询虚拟组织成员详情(公共)-虚拟组织使用场景不能为空",false);
Assert.isNull(queryVirtualOrgMemberDetailComReqDto.getSubjectLifeCycle(),"D4提交评价标准数据(公共)-D3-查询虚拟组织成员详情(公共)-主体生命周期不能为空",false);
      queryVirtualOrgMemberDetailComRespDto = fwAppVirtualOrgClient.queryVirtualOrgMemberDetailCom(queryVirtualOrgMemberDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage D4提交主观评分(公共)  63821
      CommitSubjectiveMarkComRespDto commitSubjectiveMarkComRespDto = null;
    if(generateDataObjectBatchCodeComRespDto !=null){
          CommitSubjectiveMarkComReqDto commitSubjectiveMarkComReqDto=new CommitSubjectiveMarkComReqDto();
  commitSubjectiveMarkComReqDto.setOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:1626314_1_63821
commitSubjectiveMarkComReqDto.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1754748_1_63821
commitSubjectiveMarkComReqDto.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1754749_1_63821
if(reqDto!=null){
      commitSubjectiveMarkComReqDto.setSubjectiveMark(reqDto.getSubjectiveMark());//SimpleFieldAssign//sourceId:1626316_1_63821
commitSubjectiveMarkComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1626310_1_63821
commitSubjectiveMarkComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1748099_1_63821
commitSubjectiveMarkComReqDto.setTaskId(reqDto.getTaskId());//SimpleFieldAssign//sourceId:1754309_1_63821
commitSubjectiveMarkComReqDto.setCycleStageDataId(reqDto.getCycleStageDataId());//SimpleFieldAssign//sourceId:1754310_1_63821
commitSubjectiveMarkComReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1626311_1_63821
commitSubjectiveMarkComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1626722_1_63821
commitSubjectiveMarkComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1626313_1_63821
commitSubjectiveMarkComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1626312_1_63821
commitSubjectiveMarkComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1748755_1_63821
    }
if(generateDataObjectBatchCodeComRespDto!=null){
      commitSubjectiveMarkComReqDto.setEventBatchUpdateCode(generateDataObjectBatchCodeComRespDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1754723_1_63821
    }

    /*D4提交主观评分(公共)[8695]   */
    Assert.isNull(commitSubjectiveMarkComReqDto.getOriginalRoleMemberId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-身份人员ID不能为空",false);
    Assert.isNull(commitSubjectiveMarkComReqDto.getSubjectiveMark(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-主观评分不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getCycleId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-周期ID不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getCycleTypeCode(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-周期类型标识不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getTaskId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-任务ID不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getCycleStageDataId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-周期阶段资料记录ID不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getEvaObjEntityId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-主树被评对象内容表主键ID不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getEvaObjTypeCode(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-主树被评对象类型编码不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getEvaObjTargetCycleId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getTargetCycleContentTypeCode(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getTargetCycleContentId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-关联目标内容ID不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getEvaluationTemplateId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getSpaceId(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-创建于空间ID不能为空",false);
Assert.isNull(commitSubjectiveMarkComReqDto.getEventBatchUpdateCode(),"D4提交评价标准数据(公共)-D4提交主观评分(公共)-事务内数据更新批次标识不能为空",false);
      commitSubjectiveMarkComRespDto = targetCalcService.commitSubjectiveMarkCom(commitSubjectiveMarkComReqDto)/*vcase invoke isSameApp*/;



           }
//virtualUsage D3-发送汇报任务评价消息(公共)  69904
      SendReportTaskEvaMsgComRespDto sendReportTaskEvaMsgComRespDto = null;
    if(queryVirtualOrgMemberDetailComRespDto !=null){
          SendReportTaskEvaMsgComReqDto sendReportTaskEvaMsgComReqDto=new SendReportTaskEvaMsgComReqDto();
  if(reqDto!=null){
      sendReportTaskEvaMsgComReqDto.setCycleStageDataId(reqDto.getCycleStageDataId());//SimpleFieldAssign//sourceId:1863374_1_69904
sendReportTaskEvaMsgComReqDto.setTaskId(reqDto.getTaskId());//SimpleFieldAssign//sourceId:1863379_1_69904
sendReportTaskEvaMsgComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1863375_1_69904
sendReportTaskEvaMsgComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1863376_1_69904
sendReportTaskEvaMsgComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1863377_1_69904
sendReportTaskEvaMsgComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1863378_1_69904
    }
if(queryVirtualOrgMemberDetailComRespDto!=null){
      sendReportTaskEvaMsgComReqDto.setRoleCode(queryVirtualOrgMemberDetailComRespDto.getRoleCode());//SimpleFieldAssign//sourceId:1863383_1_69904
    }

    /*D3-发送汇报任务评价消息(公共)[8290]   */
    Assert.isNull(sendReportTaskEvaMsgComReqDto.getCycleStageDataId(),"D4提交评价标准数据(公共)-D3-发送汇报任务评价消息(公共)-周期阶段资料记录ID不能为空",false);
Assert.isNull(sendReportTaskEvaMsgComReqDto.getTaskId(),"D4提交评价标准数据(公共)-D3-发送汇报任务评价消息(公共)-任务ID不能为空",false);
Assert.isNull(sendReportTaskEvaMsgComReqDto.getCycleId(),"D4提交评价标准数据(公共)-D3-发送汇报任务评价消息(公共)-周期ID不能为空",false);
Assert.isNull(sendReportTaskEvaMsgComReqDto.getTargetCycleContentTypeCode(),"D4提交评价标准数据(公共)-D3-发送汇报任务评价消息(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(sendReportTaskEvaMsgComReqDto.getTargetCycleContentId(),"D4提交评价标准数据(公共)-D3-发送汇报任务评价消息(公共)-关联目标内容ID不能为空",false);
Assert.isNull(sendReportTaskEvaMsgComReqDto.getRoleCode(),"D4提交评价标准数据(公共)-D3-发送汇报任务评价消息(公共)-角色标识不能为空",false);
Assert.isNull(sendReportTaskEvaMsgComReqDto.getEvaluationTemplateId(),"D4提交评价标准数据(公共)-D3-发送汇报任务评价消息(公共)-冗余评价模板ID不能为空",false);
      sendReportTaskEvaMsgComRespDto = fwAppMessageClient.sendReportTaskEvaMsgCom(sendReportTaskEvaMsgComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//virtualUsage D4分析汇报任务评价是否完成(公共)  67639
      AnalysisReportTaskEvaIsCompleteComRespDto analysisReportTaskEvaIsCompleteComRespDto = null;
    AnalysisReportTaskEvaIsCompleteComReqDto analysisReportTaskEvaIsCompleteComReqDto=new AnalysisReportTaskEvaIsCompleteComReqDto();
  if(reqDto!=null){
      analysisReportTaskEvaIsCompleteComReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1761799_1_67639
analysisReportTaskEvaIsCompleteComReqDto.setPeriodId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1761802_1_67639
analysisReportTaskEvaIsCompleteComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1761800_1_67639
analysisReportTaskEvaIsCompleteComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1761803_1_67639
analysisReportTaskEvaIsCompleteComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1761804_1_67639
analysisReportTaskEvaIsCompleteComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1761801_1_67639
    }

    /*D4分析汇报任务评价是否完成(公共)[9459]   */
    Assert.isNull(analysisReportTaskEvaIsCompleteComReqDto.getEvaObjTargetCycleId(),"D4提交评价标准数据(公共)-D4分析汇报任务评价是否完成(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(analysisReportTaskEvaIsCompleteComReqDto.getPeriodId(),"D4提交评价标准数据(公共)-D4分析汇报任务评价是否完成(公共)-周期ID不能为空",false);
Assert.isNull(analysisReportTaskEvaIsCompleteComReqDto.getCycleTypeCode(),"D4提交评价标准数据(公共)-D4分析汇报任务评价是否完成(公共)-周期类型标识不能为空",false);
Assert.isNull(analysisReportTaskEvaIsCompleteComReqDto.getTargetCycleContentId(),"D4提交评价标准数据(公共)-D4分析汇报任务评价是否完成(公共)-关联目标内容ID不能为空",false);
Assert.isNull(analysisReportTaskEvaIsCompleteComReqDto.getTargetCycleContentTypeCode(),"D4提交评价标准数据(公共)-D4分析汇报任务评价是否完成(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(analysisReportTaskEvaIsCompleteComReqDto.getEvaluationTemplateId(),"D4提交评价标准数据(公共)-D4分析汇报任务评价是否完成(公共)-冗余评价模板ID不能为空",false);
      analysisReportTaskEvaIsCompleteComRespDto = targetCalcService.analysisReportTaskEvaIsCompleteCom(analysisReportTaskEvaIsCompleteComReqDto)/*vcase invoke isSameApp*/;


      analysisReportTaskEvaIsCompleteComRespDto_1 = analysisReportTaskEvaIsCompleteComRespDto;
if((analysisReportTaskEvaIsCompleteComRespDto!= null&& analysisReportTaskEvaIsCompleteComRespDto.getCalcResult() != null &&analysisReportTaskEvaIsCompleteComRespDto!= null&& analysisReportTaskEvaIsCompleteComRespDto.getCalcResult() == 0)) {
        //if((D4分析汇报任务评价是否完成(公共).计算结果 值不等于空  and D4分析汇报任务评价是否完成(公共).计算结果 等于 0))  63826

ImplementSubjectiveScoreComRespDto implementSubjectiveScoreComRespDto = null;
    if(generateDataObjectBatchCodeComRespDto !=null){
          ImplementSubjectiveScoreComReqDto implementSubjectiveScoreComReqDto=new ImplementSubjectiveScoreComReqDto();
  implementSubjectiveScoreComReqDto.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1754737_1_63827
implementSubjectiveScoreComReqDto.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1754738_1_63827
  if(reqDto!=null){
      implementSubjectiveScoreComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1626298_1_63827
implementSubjectiveScoreComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1626307_1_63827
implementSubjectiveScoreComReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1626299_1_63827
implementSubjectiveScoreComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1748399_1_63827
implementSubjectiveScoreComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1748400_1_63827
implementSubjectiveScoreComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1626296_1_63827
implementSubjectiveScoreComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1748401_1_63827
    }
if(generateDataObjectBatchCodeComRespDto!=null){
      implementSubjectiveScoreComReqDto.setEventBatchUpdateCode(generateDataObjectBatchCodeComRespDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1754739_1_63827
    }

    /*D4执行计算主观得分(公共)[8682]   */
    Assert.isNull(implementSubjectiveScoreComReqDto.getCycleId(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-周期ID不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getCycleTypeCode(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-周期类型标识不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getEvaObjEntityId(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-主树被评对象内容表主键ID不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getEvaObjTypeCode(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-主树被评对象类型编码不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getEvaObjTargetCycleId(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getTargetCycleContentTypeCode(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getTargetCycleContentId(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getEvaluationTemplateId(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getSpaceId(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-创建于空间ID不能为空",false);
Assert.isNull(implementSubjectiveScoreComReqDto.getEventBatchUpdateCode(),"D4提交评价标准数据(公共)-D4执行计算主观得分(公共)-事务内数据更新批次标识不能为空",false);
      implementSubjectiveScoreComRespDto = targetCalcService.implementSubjectiveScoreCom(implementSubjectiveScoreComReqDto)/*vcase invoke isSameApp*/;
      Assert.isTrue(implementSubjectiveScoreComRespDto== null||  implementSubjectiveScoreComRespDto.getSubjectiveScore() ==null,"找不到数据，系统异常",false);


           }
UpdateTargetBelongCycleComRespDto updateTargetBelongCycleComRespDto = null;
    if(implementSubjectiveScoreComRespDto !=null){
          UpdateTargetBelongCycleComReqDto updateTargetBelongCycleComReqDto=new UpdateTargetBelongCycleComReqDto();
if(implementSubjectiveScoreComRespDto!=null){
      updateTargetBelongCycleComReqDto.setTargetAttributionCycleId(implementSubjectiveScoreComRespDto.getTargetAttributionCycleId());//SimpleFieldAssign//sourceId:1627948_1_63886
      updateTargetBelongCycleComReqDto.setSubjectiveCompreScore(implementSubjectiveScoreComRespDto.getSubjectiveScore());//SimpleFieldAssign//sourceId:1627949_1_63886
    }

    /*D3修改目标归属周期(公共)[8714]   */
    Assert.isNull(updateTargetBelongCycleComReqDto.getTargetAttributionCycleId(),"D4提交评价标准数据(公共)-D3修改目标归属周期(公共)-目标归属周期ID不能为空",false);
Assert.isNull(updateTargetBelongCycleComReqDto.getSubjectiveCompreScore(),"D4提交评价标准数据(公共)-D3修改目标归属周期(公共)-主观综合得分不能为空",false);
      updateTargetBelongCycleComRespDto = fwAppTargetCalcClient.updateTargetBelongCycleCom(updateTargetBelongCycleComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("IS_OPEN_AUDIT");//CUSTOM_CONVENTION//sourceId:1863359_1_69901
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1863360_1_69901
if(reqDto!=null){
      queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1863358_1_69901
    }

    /*D2-3查配置项匹配答案详情(公共)（跨服务）[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"D4提交评价标准数据(公共)-D2-3查配置项匹配答案详情(公共)（跨服务）-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"D4提交评价标准数据(公共)-D2-3查配置项匹配答案详情(公共)（跨服务）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"D4提交评价标准数据(公共)-D2-3查配置项匹配答案详情(公共)（跨服务）-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((queryConfItemMatchAnswerDetailComRespDto!= null&&  queryConfItemMatchAnswerDetailComRespDto.getEndValue() !=null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("FALSE"))) {
        //if(D2-3查评价模板是否开启主管人工审核答案.答案值 等于 否)  69902

RefreshReportTaskStatusMsgAndMsgNumComRespDto refreshReportTaskStatusMsgAndMsgNumComRespDto = null;
    if(queryVirtualOrgMemberDetailComRespDto !=null){
          RefreshReportTaskStatusMsgAndMsgNumComReqDto refreshReportTaskStatusMsgAndMsgNumComReqDto=new RefreshReportTaskStatusMsgAndMsgNumComReqDto();
  refreshReportTaskStatusMsgAndMsgNumComReqDto.setStatusBizOptType("EVA_REPORT_TASK_EVA_TO_SUC");//sourceId:1863362_1_69905
refreshReportTaskStatusMsgAndMsgNumComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1863365_1_69905
refreshReportTaskStatusMsgAndMsgNumComReqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1863366_1_69905
if(reqDto!=null){
      refreshReportTaskStatusMsgAndMsgNumComReqDto.setTaskId(reqDto.getTaskId());//SimpleFieldAssign//sourceId:1863363_1_69905
    }
if(queryVirtualOrgMemberDetailComRespDto!=null){
      refreshReportTaskStatusMsgAndMsgNumComReqDto.setRoleCode(queryVirtualOrgMemberDetailComRespDto.getRoleCode());//SimpleFieldAssign//sourceId:1863367_1_69905
    }

    /*D3-更新汇报任务状态及消息与数量（评价中转已成功）[8263]   */
    Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto.getStatusBizOptType(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转已成功）-状态业务操作类型不能为空",false);
Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto.getTaskId(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转已成功）-任务ID不能为空",false);
Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto.getRoleCode(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转已成功）-角色标识不能为空",false);
Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto.getSpaceId(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转已成功）-创建于空间ID不能为空",false);
Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto.getAppId(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转已成功）-创建于联盟应用ID不能为空",false);
      refreshReportTaskStatusMsgAndMsgNumComRespDto = fwAppTaskClient.refreshReportTaskStatusMsgAndMsgNumCom(refreshReportTaskStatusMsgAndMsgNumComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
      }
else if((queryConfItemMatchAnswerDetailComRespDto!= null&&  queryConfItemMatchAnswerDetailComRespDto.getEndValue() !=null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("TRUE"))){
       //elseif(D2-3查评价模板是否开启主管人工审核答案.答案值 等于 是)  69903

RefreshReportTaskStatusMsgAndMsgNumComRespDto refreshReportTaskStatusMsgAndMsgNumComRespDto_1 = null;
    if(queryVirtualOrgMemberDetailComRespDto !=null){
          RefreshReportTaskStatusMsgAndMsgNumComReqDto refreshReportTaskStatusMsgAndMsgNumComReqDto_1=new RefreshReportTaskStatusMsgAndMsgNumComReqDto();
  refreshReportTaskStatusMsgAndMsgNumComReqDto_1.setStatusBizOptType("EVA_REPORT_TASK_EVA_TO_EXA");//sourceId:1863368_1_69906
refreshReportTaskStatusMsgAndMsgNumComReqDto_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1863371_1_69906
refreshReportTaskStatusMsgAndMsgNumComReqDto_1.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1863372_1_69906
if(reqDto!=null){
      refreshReportTaskStatusMsgAndMsgNumComReqDto_1.setTaskId(reqDto.getTaskId());//SimpleFieldAssign//sourceId:1863369_1_69906
    }
if(queryVirtualOrgMemberDetailComRespDto!=null){
      refreshReportTaskStatusMsgAndMsgNumComReqDto_1.setRoleCode(queryVirtualOrgMemberDetailComRespDto.getRoleCode());//SimpleFieldAssign//sourceId:1863373_1_69906
    }

    /*D3-更新汇报任务状态及消息与数量（评价中转待审核）[8263]   */
    Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto_1.getStatusBizOptType(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转待审核）-状态业务操作类型不能为空",false);
Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto_1.getTaskId(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转待审核）-任务ID不能为空",false);
Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto_1.getRoleCode(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转待审核）-角色标识不能为空",false);
Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto_1.getSpaceId(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转待审核）-创建于空间ID不能为空",false);
Assert.isNull(refreshReportTaskStatusMsgAndMsgNumComReqDto_1.getAppId(),"D4提交评价标准数据(公共)-D3-更新汇报任务状态及消息与数量（评价中转待审核）-创建于联盟应用ID不能为空",false);
      refreshReportTaskStatusMsgAndMsgNumComRespDto_1 = fwAppTaskClient.refreshReportTaskStatusMsgAndMsgNumCom(refreshReportTaskStatusMsgAndMsgNumComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
           }
      }
CommitEvaStandardDataComRespDto retData = new CommitEvaStandardDataComRespDto();
  if(analysisReportTaskEvaIsCompleteComRespDto_1!=null){
      retData.setCalcResult(analysisReportTaskEvaIsCompleteComRespDto_1.getCalcResult());//SimpleFieldAssign//sourceId:1761957_1
    }




return retData;
  }
/**
   * D4-判断汇报任务评价工作是否完成(公共)[5495]
   * gen by moon at 4/29/2024, 3:21:12 AM
   */
  @Trace(operationName = "D4-判断汇报任务评价工作是否完成(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public JudgeTaskEvaIsDoneComRespDto judgeTaskEvaIsDoneCom(JudgeTaskEvaIsDoneComReqDto reqDto){


      CalculateCalcServiceCollectionComRespDto calculateCalcServiceCollectionComRespDto_1 =null;
//步骤0: M4执行第九接收字段（特殊方法） - implementNineReceivingField
     //ModelCode: receptionService
        ImplementNineReceivingFieldRespDto receptionServiceRes = null;
    ImplementNineReceivingFieldReqDto receptionServiceReq=new ImplementNineReceivingFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setParentSubMidCycleType(reqDto.getParentSubMidCycleType());//SimpleFieldAssign//sourceId:1762122_1
receptionServiceReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1762123_1
receptionServiceReq.setPeriodId(reqDto.getPeriodId());//SimpleFieldAssign//sourceId:1762124_1
receptionServiceReq.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1762125_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1762127_1
receptionServiceReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1762126_1
    }

    /*M4-接收入参字段[8708]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getParentSubMidCycleType(),"D4-判断汇报任务评价工作是否完成(公共)-M4-接收入参字段-父子中周期类型不能为空",false);
Assert.isNull(receptionServiceReq.getEvaObjTargetCycleId(),"D4-判断汇报任务评价工作是否完成(公共)-M4-接收入参字段-被评对象目标周期ID不能为空",false);
Assert.isNull(receptionServiceReq.getPeriodId(),"D4-判断汇报任务评价工作是否完成(公共)-M4-接收入参字段-周期ID不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentTypeCode(),"D4-判断汇报任务评价工作是否完成(公共)-M4-接收入参字段-关联目标内容类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D4-判断汇报任务评价工作是否完成(公共)-M4-接收入参字段-冗余评价模板ID不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentId(),"D4-判断汇报任务评价工作是否完成(公共)-M4-接收入参字段-关联目标内容ID不能为空",false);
      receptionServiceRes = nbTask.implementNineReceivingField(receptionServiceReq);




//步骤1: D3查询内容参与评价的角色人员列表(公共) - batchRefreshTaskerIsPartakeEvaCom
     BatchRefreshTaskerIsPartakeEvaComRespDto batchRefreshTaskerIsPartakeEvaComRespDto = null;
    BatchRefreshTaskerIsPartakeEvaComReqDto batchRefreshTaskerIsPartakeEvaComReqDto=new BatchRefreshTaskerIsPartakeEvaComReqDto();
  if(reqDto!=null){
      batchRefreshTaskerIsPartakeEvaComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:531276_1
batchRefreshTaskerIsPartakeEvaComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:531275_1
batchRefreshTaskerIsPartakeEvaComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:531277_1
    }

    /*D3查所有参与评价的人员列表[5473]   */
    Assert.isNull(batchRefreshTaskerIsPartakeEvaComReqDto.getTargetCycleContentId(),"D4-判断汇报任务评价工作是否完成(公共)-D3查所有参与评价的人员列表-关联目标内容ID不能为空",false);
Assert.isNull(batchRefreshTaskerIsPartakeEvaComReqDto.getTargetCycleContentTypeCode(),"D4-判断汇报任务评价工作是否完成(公共)-D3查所有参与评价的人员列表-关联目标内容类型编码不能为空",false);
Assert.isNull(batchRefreshTaskerIsPartakeEvaComReqDto.getEvaluationTemplateId(),"D4-判断汇报任务评价工作是否完成(公共)-D3查所有参与评价的人员列表-归属评价模板ID不能为空",false);
      batchRefreshTaskerIsPartakeEvaComRespDto = fwAppTaskClient.batchRefreshTaskerIsPartakeEvaCom(batchRefreshTaskerIsPartakeEvaComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




//步骤2: D2计算数据集内容条数服务(公共) - calculateContentAmountCom
     CalculateContentAmountComRespDto calculateContentAmountComRespDto = null;
    if(batchRefreshTaskerIsPartakeEvaComRespDto !=null){
          CalculateContentAmountComReqDto calculateContentAmountComReqDto=new CalculateContentAmountComReqDto();
  if(batchRefreshTaskerIsPartakeEvaComRespDto!= null&&  batchRefreshTaskerIsPartakeEvaComRespDto.getTaskerIsPartakeEvaList() !=null&& !CollectionUtil.isEmpty(batchRefreshTaskerIsPartakeEvaComRespDto.getTaskerIsPartakeEvaList())){
      calculateContentAmountComReqDto.setContentAmountList(batchRefreshTaskerIsPartakeEvaComRespDto.getTaskerIsPartakeEvaList().stream().map(item->item.getVirtualOrgMemberId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:531280_1
    }

    /*D2统计所有参与评价的人员总数[3386]   */

      calculateContentAmountComRespDto = fwCompStatisticalDataClient.calculateContentAmountCom(calculateContentAmountComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

//步骤3: D4-1批量查询标准数据by评价人(公共) - batchQueryStandardDataByEvaluateCom
     BatchQueryStandardDataByEvaluateComRespDto batchQueryStandardDataByEvaluateComRespDto = null;
    if(batchRefreshTaskerIsPartakeEvaComRespDto !=null){
          BatchQueryStandardDataByEvaluateComReqDto batchQueryStandardDataByEvaluateComReqDto=new BatchQueryStandardDataByEvaluateComReqDto();
  batchQueryStandardDataByEvaluateComReqDto.setIsNewData("TRUE");//sourceId:531284_1
batchQueryStandardDataByEvaluateComReqDto.setDataType("SUBJECTIVE_MARK");//sourceId:531286_1
batchQueryStandardDataByEvaluateComReqDto.setDataUsageSceneCode("TARGET_PLAN_CALC_DATA_STATISTICS");//sourceId:1078284_1
batchQueryStandardDataByEvaluateComReqDto.setIsArchive("FALSE");//sourceId:1761567_1
if(batchRefreshTaskerIsPartakeEvaComRespDto!= null&&  batchRefreshTaskerIsPartakeEvaComRespDto.getTaskerIsPartakeEvaList() !=null&& !CollectionUtil.isEmpty(batchRefreshTaskerIsPartakeEvaComRespDto.getTaskerIsPartakeEvaList())){
      batchQueryStandardDataByEvaluateComReqDto.setTaskParticipationEvaluateList(batchRefreshTaskerIsPartakeEvaComRespDto.getTaskerIsPartakeEvaList().stream().map(item->item.getVirtualOrgMemberId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:531283_1
    }
if(reqDto!=null){
      batchQueryStandardDataByEvaluateComReqDto.setParentSubMidCycleType(reqDto.getParentSubMidCycleType());//SimpleFieldAssign//sourceId:1761798_1
batchQueryStandardDataByEvaluateComReqDto.setEntityId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:531288_1
batchQueryStandardDataByEvaluateComReqDto.setPeriodId(reqDto.getPeriodId());//SimpleFieldAssign//sourceId:531285_1
batchQueryStandardDataByEvaluateComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:531297_1
    }

    /*D4-1查已经提交评价的数据列表[5485]   */
    Assert.isNull(batchQueryStandardDataByEvaluateComReqDto.getParentSubMidCycleType(),"D4-判断汇报任务评价工作是否完成(公共)-D4-1查已经提交评价的数据列表-父子中周期类型不能为空",false);
Assert.isNull(batchQueryStandardDataByEvaluateComReqDto.getEntityId(),"D4-判断汇报任务评价工作是否完成(公共)-D4-1查已经提交评价的数据列表-归属内容表主键ID不能为空",false);
Assert.isNull(batchQueryStandardDataByEvaluateComReqDto.getPeriodId(),"D4-判断汇报任务评价工作是否完成(公共)-D4-1查已经提交评价的数据列表-周期ID不能为空",false);
Assert.isNull(batchQueryStandardDataByEvaluateComReqDto.getIsNewData(),"D4-判断汇报任务评价工作是否完成(公共)-D4-1查已经提交评价的数据列表-是否归属周期最新数据不能为空",false);
Assert.isNull(batchQueryStandardDataByEvaluateComReqDto.getDataType(),"D4-判断汇报任务评价工作是否完成(公共)-D4-1查已经提交评价的数据列表-数据点类型不能为空",false);
Assert.isNull(batchQueryStandardDataByEvaluateComReqDto.getDataUsageSceneCode(),"D4-判断汇报任务评价工作是否完成(公共)-D4-1查已经提交评价的数据列表-数据业务场景不能为空",false);
Assert.isNull(batchQueryStandardDataByEvaluateComReqDto.getThemeContentId(),"D4-判断汇报任务评价工作是否完成(公共)-D4-1查已经提交评价的数据列表-主题内容ID不能为空",false);
Assert.isNull(batchQueryStandardDataByEvaluateComReqDto.getIsArchive(),"D4-判断汇报任务评价工作是否完成(公共)-D4-1查已经提交评价的数据列表-是否存档不能为空",false);
      batchQueryStandardDataByEvaluateComRespDto = standardDataService.batchQueryStandardDataByEvaluateCom(batchQueryStandardDataByEvaluateComReqDto)/*vcase invoke isSameApp*/;



           }

//步骤4: D2计算数据集内容条数服务(公共) - calculateContentAmountCom
     CalculateContentAmountComRespDto calculateContentAmountComRespDto_2 = null;
    if(batchQueryStandardDataByEvaluateComRespDto !=null){
          CalculateContentAmountComReqDto calculateContentAmountComReqDto_1=new CalculateContentAmountComReqDto();
  if(batchQueryStandardDataByEvaluateComRespDto!= null&&  batchQueryStandardDataByEvaluateComRespDto.getStandardDataList() !=null&& !CollectionUtil.isEmpty(batchQueryStandardDataByEvaluateComRespDto.getStandardDataList())){
      calculateContentAmountComReqDto_1.setContentAmountList(batchQueryStandardDataByEvaluateComRespDto.getStandardDataList().stream().map(item->item.getDataResultId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:531300_1
    }

    /*D2统计已经提交评价的人员总数[3386]   */

      calculateContentAmountComRespDto_2 = fwCompStatisticalDataClient.calculateContentAmountCom(calculateContentAmountComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;
      Assert.isTrue(calculateContentAmountComRespDto_2== null||  calculateContentAmountComRespDto_2.getCalcCount() ==null,"找不到数据，系统异常",false);


           }

//步骤5: D4-计算服务集合（基础）(公共) - calculateCalcServiceCollectionCom
     CalculateCalcServiceCollectionComRespDto calculateCalcServiceCollectionComRespDto = null;
    if(calculateContentAmountComRespDto !=null){
          CalculateCalcServiceCollectionComReqDto calculateCalcServiceCollectionComReqDto=new CalculateCalcServiceCollectionComReqDto();
  calculateCalcServiceCollectionComReqDto.setCalcFormula("SUBTRACTION_OF_TWO_NUM");//sourceId:531302_1
if(calculateContentAmountComRespDto!=null){
      calculateCalcServiceCollectionComReqDto.setCalcPara1(calculateContentAmountComRespDto.getCalcCount()!=null?Double.valueOf(calculateContentAmountComRespDto.getCalcCount()):null);//SimpleFieldAssign//sourceId:531304_1
    }
if(calculateContentAmountComRespDto_2!=null){
      calculateCalcServiceCollectionComReqDto.setCalcPara2(calculateContentAmountComRespDto_2.getCalcCount()!=null?Double.valueOf(calculateContentAmountComRespDto_2.getCalcCount()):null);//SimpleFieldAssign//sourceId:531305_1
    }

    /*D4-判断所有参与评价者是否都已经提交评价[5091]   */
    Assert.isNull(calculateCalcServiceCollectionComReqDto.getCalcFormula(),"D4-判断汇报任务评价工作是否完成(公共)-D4-判断所有参与评价者是否都已经提交评价-通用计算公式不能为空",false);
Assert.isNull(calculateCalcServiceCollectionComReqDto.getCalcPara1(),"D4-判断汇报任务评价工作是否完成(公共)-D4-判断所有参与评价者是否都已经提交评价-计算入参1不能为空",false);
Assert.isNull(calculateCalcServiceCollectionComReqDto.getCalcPara2(),"D4-判断汇报任务评价工作是否完成(公共)-D4-判断所有参与评价者是否都已经提交评价-计算入参2不能为空",false);
      calculateCalcServiceCollectionComRespDto = calculationRulesService.calculateCalcServiceCollectionCom(calculateCalcServiceCollectionComReqDto)/*vcase invoke isSameApp*/;


      calculateCalcServiceCollectionComRespDto_1 = calculateCalcServiceCollectionComRespDto;
           }

JudgeTaskEvaIsDoneComRespDto retData = new JudgeTaskEvaIsDoneComRespDto();
  if(calculateCalcServiceCollectionComRespDto_1!=null){
      retData.setCalcResult(calculateCalcServiceCollectionComRespDto_1.getCalcResult());//SimpleFieldAssign//sourceId:531806_1
    }




return retData;
  }
  //
}
